From 8899727827ffe8eeb501413113c1dd1081f88f64 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 20 Sep 2011 17:13:11 -0700 Subject: Fix perf-tests.sh to skip building non-upb tests. --- Makefile | 4 ++++ perf-tests.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00b9d3a..77b5647 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 7bdbee0..e3427f6 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 -- cgit v1.2.3