Add a simple script that calculates an aggregate score over all tests running with the jit in t/*.

This commit is contained in:
Andreas Gal 2008-08-15 20:26:45 -07:00
parent b9e946d830
commit dcb470b104

9
js/src/bench.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
T="0"
for i in t/*.js; do
T+="+"
T+=`Darwin_OPT.OBJ/js -j -e 'var d = Date.now(); load("'$i'"); print(Date.now() - d);'`
done
echo $T | bc