exchange111

JavaScript performance comparison

Test case created by dx

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
normal
var a = [0,1,2,3,4,5,6],
    t;

t = a[0];
a[0] = a[6];
a[6] = t;
pending…
hack
var a = [0,1,2,3,4,5,6];

a[0] = [a[6], a[6] = a[0]][0];
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