lijia3
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var a="1+2+3*2+1*3*3+1";
var b="++*+**+";
function plus(a,b){
return a+b;
}
function times(a,b){
return a*b
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test  Ops/sec  

1 

pending… 
2 

pending… 
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit
to the URL. Here’s a list of current revisions for this page:
 Revision 1: published
 Revision 2: published
 Revision 3: published
 Revision 4: published
 Revision 5: published
 Revision 6: published
 Revision 7: published
 Revision 8: published
 Revision 9: published
 Revision 10: published
 Revision 11: published
 Revision 12: published
 Revision 13: published
 Revision 14: published
 Revision 15: published
 Revision 16: published
 Revision 17: published
 Revision 18: published
 Revision 19: published
 Revision 20: published
 Revision 21: published
 Revision 22: published
 Revision 23: published
 Revision 24: published
 Revision 25: published
 Revision 26: published
 Revision 27: published
 Revision 28: published
 Revision 29: published
 Revision 30: published
 Revision 31: published
 Revision 32: published
 Revision 33: published
 Revision 34: published
 Revision 35: published
 Revision 36: published
 Revision 37: published
 Revision 38: published
 Revision 39: published
 Revision 40: published
 Revision 41: published
 Revision 42: published
 Revision 43: published
 Revision 44: published
 Revision 45: published
 Revision 46: published
 Revision 47: published
0 comments