Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50
Chrome 110
Windows
Desktop
one year ago
Test name Executions per second
individualParams: Multiple parameters 1621417.6 Ops/sec
individualParams: Existing parameter object 1689387.8 Ops/sec
individualParams: Parameter object with spreading 1476934.1 Ops/sec
individualParams: New parameter object from values 1850564.4 Ops/sec
individualParams: New parameter object from object 938911.8 Ops/sec
objectInAndUsed: Multiple parameters 1214289.9 Ops/sec
objectInAndUsed: Existing parameter object 1918475.8 Ops/sec
objectInAndUsed: Parameter object with spreading 2370949.0 Ops/sec
objectInAndUsed: New parameter object from values 3461290.8 Ops/sec
objectInAndUsed: New parameter object from object 1290587.8 Ops/sec
objectInAndDestructured: Multiple parameters 1211685.8 Ops/sec
objectInAndDestructured: Existing parameter object 2084616.2 Ops/sec
objectInAndDestructured: Parameter object with spreading 2253920.5 Ops/sec
objectInAndDestructured: New parameter object from values 4051924.0 Ops/sec
objectInAndDestructured: New parameter object from object 1459075.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