Bug 588735 - Mirror glass caption buttons for rtl windows. r=roc, a=blocking-betaN.
[mozilla-central.git] / js / src / time.sh
blob05b34993bf1a1d1667960678a7bfe0764df034ae
1 #!/bin/bash
2 echo -n interp:' '
3 for i in 1 2 3 4 5; do
4 INTERP=`Darwin_OPT.OBJ/js -e 'var d = Date.now(); load("'$1'"); print(Date.now() - d);'`
5 echo -n $INTERP' '
6 done
7 echo -ne '\njit: '
8 for i in 1 2 3 4 5; do
9 JIT=`Darwin_OPT.OBJ/js -j -e 'var d = Date.now(); load("'$1'"); print(Date.now() - d);'`
10 echo -n $JIT' '
11 done
12 echo -ne '\njit factor: '
13 (echo scale=2; echo $INTERP / $JIT ) | bc