Skip to content

Commit

Permalink
Tweak script output.
Browse files Browse the repository at this point in the history
  • Loading branch information
codygunton committed Aug 9, 2023
1 parent 7c67671 commit 3f2862a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down

0 comments on commit 3f2862a

Please sign in to comment.