diff options
| author | Igor Minar | 2010-12-21 17:13:07 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-12-22 14:16:36 -0800 |
| commit | e3ddc2bcc48ba6160455c4ffe35df87715c05693 (patch) | |
| tree | ba60df45585e778958804fb92b14f1dcbd0123ae /test-perf.sh | |
| parent | d11088eb430ef7f0b444888517868ba880610f6b (diff) | |
| download | angular.js-e3ddc2bcc48ba6160455c4ffe35df87715c05693.tar.bz2 | |
simple perf testing harness with JSON parsing tests
- all tests should be under perf/
- all payloads should be under perf/data
- run tests with ./server.sh + ./test-perf.sh
We still lack a way to compare results against a baseline, but
this is better than nothing.
Diffstat (limited to 'test-perf.sh')
| -rwxr-xr-x | test-perf.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-perf.sh b/test-perf.sh new file mode 100755 index 00000000..8dfb97a3 --- /dev/null +++ b/test-perf.sh @@ -0,0 +1,13 @@ +#!/bin/sh +tests=$1 +norecompile=$2 + +if [[ $tests = "" ]]; then + tests="all" +fi + +if [[ $norecompile = "" ]]; then + rake compile +fi + +java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-perf.conf |
