Dynamic vs. explicit JavaScript arguments

Benchmark created by Lance Pollard on


Setup

window.dynamic = function() {
      return arguments[0] + arguments[1]
    }
    
    window.explicit = function(a, b) {
      return a + b;
    }

Test runner

Ready to run.

Testing in
TestOps/sec
dynamic
dynamic();
ready
explicit
explicit();
 
ready

Revisions

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

  • Revision 1: published by Lance Pollard on