2013年1月21日16时57分28秒

JavaScript performance comparison

Test case created by 2012年12月24日11时41分33秒

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var a=1,b=2;
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
1
Math.min(a,b)
pending…
a=a<b?a:b;
a<b?a:b;
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment