Script Preparation code:
x
 
var data = { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7 }
function f1(a, b, c, d, e, f, g) {
  return a + b + c + d + e + f + g;
}
function f2(p) {
  return p.a + p.b + p.c + p.d + p.e + p.f + p.g;
}
Tests:
  • Multiple parameters

     
    f1(data.a, data.b, data.c, data.d, data.e, data.f, Math.random())
  • Existing parameter object

     
    data.g = Math.random();
    f2(data)
  • Parameter object with spreading

     
    f2({ ...data, g: Math.random() })
  • New parameter object

     
    f2({ a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: Math.random() })
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Multiple parameters
    Existing parameter object
    Parameter object with spreading
    New parameter object

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!