Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Windows
Desktop
2 years ago
Test name Executions per second
individualParams: Multiple parameters 1871681.4 Ops/sec
individualParams: Existing parameter object 2154803.8 Ops/sec
individualParams: Parameter object with spreading 2286041.0 Ops/sec
individualParams: New parameter object from values 2874232.8 Ops/sec
individualParams: New parameter object from object 1402164.8 Ops/sec
objectInAndUsed: Multiple parameters 1877160.0 Ops/sec
objectInAndUsed: Existing parameter object 3259072.8 Ops/sec
objectInAndUsed: Parameter object with spreading 3699601.0 Ops/sec
objectInAndUsed: New parameter object from values 5643539.0 Ops/sec
objectInAndUsed: New parameter object from object 1879009.8 Ops/sec
objectInAndDestructured: Multiple parameters 1851971.0 Ops/sec
objectInAndDestructured: Existing parameter object 3228033.5 Ops/sec
objectInAndDestructured: Parameter object with spreading 3630288.0 Ops/sec
objectInAndDestructured: New parameter object from values 5455965.5 Ops/sec
objectInAndDestructured: New parameter object from object 1841392.4 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


;