diff --git a/Makefile b/Makefile index 00b9d3a695..77b5647230 100644 --- a/Makefile +++ b/Makefile @@ -295,6 +295,10 @@ BENCHMARKS=$(UPB_BENCHMARKS) \ upb_benchmarks: $(UPB_BENCHMARKS) benchmarks: $(BENCHMARKS) +upb_benchmark: $(UPB_BENCHMARKS) + @rm -f benchmarks/results + @rm -rf benchmarks/*.dSYM + @for test in benchmarks/b.* ; do ./$$test ; done benchmark: $(BENCHMARKS) @rm -f benchmarks/results @rm -rf benchmarks/*.dSYM diff --git a/perf-tests.sh b/perf-tests.sh index 7bdbee0937..e3427f6c75 100755 --- a/perf-tests.sh +++ b/perf-tests.sh @@ -18,7 +18,7 @@ run_with_flags () { make clean echo "$FLAGS" > perf-cppflags make upb_benchmarks - make benchmark | sed -e "s/^/$NAME./g" | tee -a perf-tests.out + make upb_benchmark | sed -e "s/^/$NAME./g" | tee -a perf-tests.out } #if [ x`uname -m` = xx86_64 ]; then