-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1d02ff
commit 2592445
Showing
8 changed files
with
22 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,24 @@ | ||
add_executable(standard_honk_bench main.bench.cpp standard_honk.bench.cpp) | ||
add_executable(standard_plonk_bench main.bench.cpp standard_plonk.bench.cpp) | ||
add_executable(ultra_honk_bench main.bench.cpp ultra_honk.bench.cpp) | ||
add_executable(ultra_plonk_bench main.bench.cpp ultra_plonk.bench.cpp) | ||
|
||
target_link_libraries( | ||
standard_honk_bench | ||
stdlib_primitives | ||
stdlib_sha256 | ||
stdlib_keccak | ||
stdlib_merkle_tree | ||
env | ||
benchmark::benchmark | ||
# Each source represents a separate benchmark suite | ||
set(BENCHMARK_SOURCES | ||
standard_honk.bench.cpp | ||
standard_plonk.bench.cpp | ||
ultra_honk.bench.cpp | ||
ultra_plonk.bench.cpp | ||
) | ||
|
||
target_link_libraries( | ||
standard_plonk_bench | ||
# Required libraries for benchmark suites | ||
set(LINKED_LIBRARIES | ||
stdlib_primitives | ||
stdlib_sha256 | ||
stdlib_keccak | ||
stdlib_merkle_tree | ||
env | ||
benchmark::benchmark | ||
) | ||
|
||
target_link_libraries( | ||
ultra_honk_bench | ||
stdlib_primitives | ||
stdlib_sha256 | ||
stdlib_keccak | ||
stdlib_merkle_tree | ||
env | ||
benchmark::benchmark | ||
) | ||
|
||
target_link_libraries( | ||
ultra_plonk_bench | ||
stdlib_primitives | ||
stdlib_sha256 | ||
stdlib_keccak | ||
stdlib_merkle_tree | ||
env | ||
benchmark::benchmark | ||
) | ||
|
||
add_custom_target( | ||
run_standard_honk_bench | ||
COMMAND standard_honk_bench | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
add_custom_target( | ||
run_standard_plonk_bench | ||
COMMAND standard_plonk_bench | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
add_custom_target( | ||
run_ultra_honk_bench | ||
COMMAND ultra_honk_bench | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
add_custom_target( | ||
run_ultra_plonk_bench | ||
COMMAND ultra_plonk_bench | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
# Add executable and custom target for each suite, e.g. standard_honk_bench | ||
foreach(BENCHMARK_SOURCE ${BENCHMARK_SOURCES}) | ||
get_filename_component(BENCHMARK_NAME ${BENCHMARK_SOURCE} NAME_WE) # extract name without extension | ||
add_executable(${BENCHMARK_NAME}_bench main.bench.cpp ${BENCHMARK_SOURCE}) | ||
target_link_libraries(${BENCHMARK_NAME}_bench ${LINKED_LIBRARIES}) | ||
add_custom_target(run_${BENCHMARK_NAME} COMMAND ${BENCHMARK_NAME} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
20 changes: 0 additions & 20 deletions
20
cpp/src/barretenberg/benchmark/honk_bench/standard_honk.bench.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
cpp/src/barretenberg/benchmark/honk_bench/standard_plonk.bench.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
cpp/src/barretenberg/benchmark/honk_bench/ultra_honk.bench.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
cpp/src/barretenberg/benchmark/honk_bench/ultra_plonk.bench.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters