/[jscoverage]/trunk/js/time.sh
ViewVC logotype

Annotation of /trunk/js/time.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 332 - (hide annotations)
Thu Oct 23 19:03:33 2008 UTC (11 years ago) by siliconforks
File MIME type: application/x-sh
File size: 395 byte(s)
Add SpiderMonkey from Firefox 3.1b1.

The following directories and files were removed:
correct/, correct.js
liveconnect/
nanojit/
t/
v8/
vprof/
xpconnect/
all JavaScript files (Y.js, call.js, if.js, math-partial-sums.js, md5.js, perfect.js, trace-test.js, trace.js)


1 siliconforks 332 #!/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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.24