https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 868ee5b1adf71c29a1727d6f007ddb2a90f00cb4 authored by cltbld on 23 September 2011, 00:19:58 UTC
Merging together weird heads on GECKO60_2011080402_RELBRANCH; doesn't affect any code that is still to be released, just needs to be done to get around the single head per branch hook
Tip revision: 868ee5b
time.sh
#!/bin/bash
echo -n interp:' '
for i in 1 2 3 4 5; do
  INTERP=`Darwin_OPT.OBJ/js -e 'var d = Date.now(); load("'$1'"); print(Date.now() - d);'`
  echo -n $INTERP' '
done
echo -ne '\njit: '
for i in 1 2 3 4 5; do
  JIT=`Darwin_OPT.OBJ/js -j -e 'var d = Date.now(); load("'$1'"); print(Date.now() - d);'`
  echo -n $JIT' '
done
echo -ne '\njit factor: '
(echo scale=2; echo $INTERP / $JIT ) | bc
back to top