From 3f2862a0daa3b310fb511b3b3877331956d085b2 Mon Sep 17 00:00:00 2001 From: codygunton Date: Wed, 9 Aug 2023 01:17:56 +0000 Subject: [PATCH] Tweak script output. --- .../simulator_bench/compare_native_to_simulator.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/benchmark/simulator_bench/compare_native_to_simulator.sh b/circuits/cpp/barretenberg/cpp/src/barretenberg/benchmark/simulator_bench/compare_native_to_simulator.sh index c8c1c9b1511..dc0ae4e0a91 100755 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/benchmark/simulator_bench/compare_native_to_simulator.sh +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/benchmark/simulator_bench/compare_native_to_simulator.sh @@ -6,7 +6,6 @@ echo -e '\nComparing Native and Simulator execution.' # Set some directories -echo $HOME BASE_DIR="$HOME/aztec-packages/circuits/cpp/barretenberg/cpp" BUILD_DIR="$BASE_DIR/build-bench" BENCH_RESULTS_DIR="$BASE_DIR/tmp_bench_results" @@ -21,17 +20,19 @@ cd $BASE_DIR mkdir $BENCH_RESULTS_DIR # -echo -e '\nBuilding and running native benchmarks..' -# rm -rf $BUILD_DIR +echo -e '\nBuilding native benchmarks.' cmake --preset bench > /dev/null && cmake --build --preset bench --target native_bench cd build-bench NATIVE_BENCH_RESULTS="$BENCH_RESULTS_DIR/native_bench.json" +echo -e '\nRunning native benchmarks.' ./bin/native_bench --benchmark_format=json > $NATIVE_BENCH_RESULTS +echo -e '\nBuilding simulator benchmarks.' cd .. cmake --preset bench > /dev/null && cmake --build --preset bench --target simulator_bench cd build-bench SIMULATOR_BENCH_RESULTS="$BENCH_RESULTS_DIR/simulator_bench.json" +echo -e '\nRunning simulator benchmarks.' ./bin/simulator_bench --benchmark_format=json > $SIMULATOR_BENCH_RESULTS # Call compare.py on the results (json) to get high level statistics.