summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-09-20 17:13:11 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-09-20 17:13:11 -0700
commit8899727827ffe8eeb501413113c1dd1081f88f64 (patch)
treea93c9dd810b2225d1d4601237e706159d60feba6
parent7d986946b7dca88823dcc3fbe004c14dd2dc863f (diff)
Fix perf-tests.sh to skip building non-upb tests.
-rw-r--r--Makefile4
-rwxr-xr-xperf-tests.sh2
2 files changed, 5 insertions, 1 deletions
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback