Skip to content

Commit f24a250

Browse files
authored
Revamp benchmark suite (#522)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 7132426 commit f24a250

102 files changed

Lines changed: 82392 additions & 24962 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
cxx: g++-13
3232
type: static
3333
shell: sh
34-
benchmark: macos/gcc
3534
- os: ubuntu-latest
3635
cc: clang
3736
cxx: clang++
@@ -57,7 +56,6 @@ jobs:
5756
- os: windows-latest
5857
type: static
5958
shell: pwsh
60-
benchmark: windows/msvc
6159
- os: windows-latest
6260
type: shared
6361
shell: pwsh

benchmark/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
set(BENCHMARK_SOURCES)
22

3-
if(BLAZE_COMPILER)
3+
if(BLAZE_COMPILER AND BLAZE_EVALUATOR)
44
list(APPEND BENCHMARK_SOURCES
5-
compiler_draft6.cc
6-
compiler_2019_09.cc)
7-
endif()
8-
if(BLAZE_EVALUATOR)
9-
list(APPEND BENCHMARK_SOURCES
10-
evaluator_draft4.cc
11-
evaluator_draft6.cc
12-
evaluator_draft7.cc
13-
evaluator_2019_09.cc
14-
evaluator_2020_12.cc)
5+
e2e/runner.cc
6+
micro/draft4.cc
7+
micro/draft6.cc
8+
micro/draft7.cc
9+
micro/2019_09.cc
10+
micro/2020_12.cc)
1511
endif()
1612

1713
if(BENCHMARK_SOURCES)
@@ -20,8 +16,12 @@ if(BENCHMARK_SOURCES)
2016
target_compile_definitions(sourcemeta_blaze_benchmark
2117
PRIVATE CURRENT_DIRECTORY="${CMAKE_CURRENT_SOURCE_DIR}")
2218

19+
target_link_libraries(sourcemeta_blaze_benchmark
20+
PRIVATE sourcemeta::core::io)
2321
target_link_libraries(sourcemeta_blaze_benchmark
2422
PRIVATE sourcemeta::core::json)
23+
target_link_libraries(sourcemeta_blaze_benchmark
24+
PRIVATE sourcemeta::core::jsonl)
2525
target_link_libraries(sourcemeta_blaze_benchmark
2626
PRIVATE sourcemeta::core::jsonschema)
2727

benchmark/compiler_2019_09.cc

Lines changed: 0 additions & 25 deletions
This file was deleted.

benchmark/compiler_draft6.cc

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Hello World!"}]}
2+
{"type":"AdaptiveCard","version":"1.2","body":[{"type":"TextBlock","text":"Welcome","size":"Large","weight":"Bolder"},{"type":"TextBlock","text":"This is a sample card","wrap":true}]}
3+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"Image","url":"https://example.com/image.jpg"}],"actions":[{"type":"Action.OpenUrl","title":"Learn More","url":"https://example.com"}]}
4+
{"type":"AdaptiveCard","version":"1.3","body":[{"type":"Container","items":[{"type":"TextBlock","text":"Container Item 1"},{"type":"TextBlock","text":"Container Item 2"}]}]}
5+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Please enter your name:"},{"type":"Input.Text","id":"nameInput","placeholder":"Your name"}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
6+
{"type":"AdaptiveCard","version":"1.2","body":[{"type":"ColumnSet","columns":[{"type":"Column","width":"auto","items":[{"type":"TextBlock","text":"Left"}]},{"type":"Column","width":"stretch","items":[{"type":"TextBlock","text":"Right"}]}]}]}
7+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"FactSet","facts":[{"title":"Fact 1","value":"Value 1"},{"title":"Fact 2","value":"Value 2"}]}]}
8+
{"type":"AdaptiveCard","version":"1.4","body":[{"type":"TextBlock","text":"Modern Card"}],"refresh":{"action":{"type":"Action.Execute","verb":"refresh"}}}
9+
{"type":"AdaptiveCard","version":"1.1","body":[{"type":"TextBlock","text":"Card with select action"}],"selectAction":{"type":"Action.OpenUrl","url":"https://example.com"}}
10+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Minimal card"}],"speak":"This is a minimal adaptive card"}
11+
{"type":"AdaptiveCard","version":"1.5","body":[{"type":"TextBlock","text":"RTL Support"}],"rtl":true}
12+
{"type":"AdaptiveCard","version":"1.2","body":[{"type":"TextBlock","text":"Card with background"}],"backgroundImage":"https://example.com/bg.jpg"}
13+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"Input.ChoiceSet","id":"choices","choices":[{"title":"Option 1","value":"1"},{"title":"Option 2","value":"2"}]}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
14+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Date Input"},{"type":"Input.Date","id":"dateInput"}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
15+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Time Input"},{"type":"Input.Time","id":"timeInput"}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
16+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Toggle Input"},{"type":"Input.Toggle","id":"toggleInput","title":"Accept terms"}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
17+
{"type":"AdaptiveCard","version":"1.2","body":[{"type":"TextBlock","text":"Media Element"},{"type":"Media","sources":[{"mimeType":"video/mp4","url":"https://example.com/video.mp4"}]}]}
18+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Number Input"},{"type":"Input.Number","id":"numberInput","min":0,"max":100}],"actions":[{"type":"Action.Submit","title":"Submit"}]}
19+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"ImageSet","images":[{"type":"Image","url":"https://example.com/img1.jpg"},{"type":"Image","url":"https://example.com/img2.jpg"}]}]}
20+
{"type":"AdaptiveCard","version":"1.0","body":[{"type":"TextBlock","text":"Card with fallback text"}],"fallbackText":"This client does not support Adaptive Cards"}

0 commit comments

Comments
 (0)