Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
individualParams: Multiple parameters 718717056.0 Ops/sec
individualParams: Existing parameter object 7609091.0 Ops/sec
individualParams: Parameter object with spreading 4537130.0 Ops/sec
individualParams: New parameter object from values 7623112.0 Ops/sec
individualParams: New parameter object from object 6756125.0 Ops/sec
objectInAndUsed: Multiple parameters 740464064.0 Ops/sec
objectInAndUsed: Existing parameter object 183636672.0 Ops/sec
objectInAndUsed: Parameter object with spreading 11414798.0 Ops/sec
objectInAndUsed: New parameter object from values 256415440.0 Ops/sec
objectInAndUsed: New parameter object from object 258350368.0 Ops/sec
objectInAndDestructured: Multiple parameters 89732520.0 Ops/sec
objectInAndDestructured: Existing parameter object 102327136.0 Ops/sec
objectInAndDestructured: Parameter object with spreading 11255273.0 Ops/sec
objectInAndDestructured: New parameter object from values 65819244.0 Ops/sec
objectInAndDestructured: New parameter object from object 55947356.0 Ops/sec
Script Preparation code:
Tests:
  • individualParams: Multiple parameters

  • individualParams: Existing parameter object

  • individualParams: Parameter object with spreading

  • individualParams: New parameter object from values

  • individualParams: New parameter object from object

  • objectInAndUsed: Multiple parameters

  • objectInAndUsed: Existing parameter object

  • objectInAndUsed: Parameter object with spreading

  • objectInAndUsed: New parameter object from values

  • objectInAndUsed: New parameter object from object

  • objectInAndDestructured: Multiple parameters

  • objectInAndDestructured: Existing parameter object

  • objectInAndDestructured: Parameter object with spreading

  • objectInAndDestructured: New parameter object from values

  • objectInAndDestructured: New parameter object from object