The Other Thing That Annoys Me

JavaScript performance comparison

Test case created

Info

stop it.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
the way that annoys me
var push = [].push;
var list = [1, 2, 3, 4, 5];

push.apply(list, [6]);
pending…
the way that makes sense
var list = [1, 2, 3, 4, 5];

list.push(6)
pending…
another way that is annoying
var list = [1, 2, 3, 4, 5];
var push = [].push;

push.call(list, 6);
pending…
another way that is annoying
var list = [1, 2, 3, 4, 5];
var push = [].push;

push.call(list, 6);
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