idiotic call vs apply

Benchmark created on


Setup

var func = function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
          console.log("args", arguments.length)
      }
    var obj = {};

Test runner

Ready to run.

Testing in
TestOps/sec
call
func.call(obj, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
ready
apply
func.apply(obj, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
ready

Revisions

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