Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
individualParams: Multiple parameters 1621108.4 Ops/sec
individualParams: Existing parameter object 1933870.1 Ops/sec
individualParams: Parameter object with spreading 2283863.2 Ops/sec
individualParams: New parameter object from values 2784487.0 Ops/sec
individualParams: New parameter object from object 1353006.4 Ops/sec
objectInAndUsed: Multiple parameters 1765821.4 Ops/sec
objectInAndUsed: Existing parameter object 3004097.5 Ops/sec
objectInAndUsed: Parameter object with spreading 3552618.0 Ops/sec
objectInAndUsed: New parameter object from values 5190396.0 Ops/sec
objectInAndUsed: New parameter object from object 1746078.4 Ops/sec
objectInAndDestructured: Multiple parameters 1749745.0 Ops/sec
objectInAndDestructured: Existing parameter object 3163562.5 Ops/sec
objectInAndDestructured: Parameter object with spreading 3770197.8 Ops/sec
objectInAndDestructured: New parameter object from values 5511047.5 Ops/sec
objectInAndDestructured: New parameter object from object 1818210.8 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