Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
5 months ago
Test name Executions per second
individualParams: Multiple parameters 2471411.2 Ops/sec
individualParams: Existing parameter object 3458102.8 Ops/sec
individualParams: Parameter object with spreading 3854325.0 Ops/sec
individualParams: New parameter object from values 4873383.0 Ops/sec
individualParams: New parameter object from object 2097324.0 Ops/sec
objectInAndUsed: Multiple parameters 2462692.0 Ops/sec
objectInAndUsed: Existing parameter object 4414966.5 Ops/sec
objectInAndUsed: Parameter object with spreading 5253947.0 Ops/sec
objectInAndUsed: New parameter object from values 7361675.0 Ops/sec
objectInAndUsed: New parameter object from object 2461481.2 Ops/sec
objectInAndDestructured: Multiple parameters 2474442.2 Ops/sec
objectInAndDestructured: Existing parameter object 4289875.0 Ops/sec
objectInAndDestructured: Parameter object with spreading 5152364.0 Ops/sec
objectInAndDestructured: New parameter object from values 7437533.0 Ops/sec
objectInAndDestructured: New parameter object from object 2484738.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


;