Access Test

Benchmark created by Nik Burnt on


Test runner

Ready to run.

Testing in
TestOps/sec
Direct Parameter
function foo() {
  bar(1, 'qqq', 2.12, true);
}

function bar(a, b, c, d) {
  console.log(a, b, c, d);
}
ready
Parameters as Object
function foo() {
  var a = {
    a: 1,
    b: 'qqq',
    c: 2.12,
    d: true
  };
  bar(a);
}

function bar(a) {
  console.log(a.a, a.b, a.c, a.d);
}
ready

Revisions

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

  • Revision 1: published by Nik Burnt on