Skip to content

Commit 02e2845

Browse files
committed
add compare-perf script
1 parent dd32e45 commit 02e2845

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

performance/compare-perf

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#! /usr/bin/env bash
2+
3+
if [ -z $1 ]; then
4+
echo "usage: compare-perf <revision1> [<revision2> ..]"
5+
exit 1
6+
fi
7+
8+
measurePerf() {
9+
echo "***************" $1 "**************"
10+
git checkout -q $1
11+
coffee performance/PerformanceTest.coffee
12+
}
13+
14+
for revision in "$@"
15+
do
16+
measurePerf $revision
17+
done

0 commit comments

Comments
 (0)