Arguments De-Opt

JavaScript performance comparison

Revision 2 of this test case created by JasonC

Info

Removed unnecessary internal loops since JSPerf loops externally to allow for greater number of tests to execute. Also created anonymous functions to auto execute.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
arguments appears
(function () {
  arguments;
})();
pending…
Convert to array
(function () {
  var a = Array.prototype.slice.call(arguments);
})();
pending…
Indexed access
(function () {
  var a = arguments[0];
})();
pending…
access to callee
(function () {
  var fn = arguments.callee;
})();
pending…
access to length
(function () {
  var num = arguments.length;
})();
pending…
No arguments (reference)
(function () {
})();
pending…
eval is here (reference)
(function () {
  eval('');
})();
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:

0 comments

Add a comment