Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
4 months ago
Test name Executions per second
individualParams: Multiple parameters 1563987.1 Ops/sec
individualParams: Existing parameter object 1920069.1 Ops/sec
individualParams: Parameter object with spreading 2377325.2 Ops/sec
individualParams: New parameter object from values 2970184.0 Ops/sec
individualParams: New parameter object from object 1326540.0 Ops/sec
objectInAndUsed: Multiple parameters 1601433.9 Ops/sec
objectInAndUsed: Existing parameter object 2675755.0 Ops/sec
objectInAndUsed: Parameter object with spreading 3145186.0 Ops/sec
objectInAndUsed: New parameter object from values 4958071.0 Ops/sec
objectInAndUsed: New parameter object from object 1517623.1 Ops/sec
objectInAndDestructured: Multiple parameters 1601353.2 Ops/sec
objectInAndDestructured: Existing parameter object 2869654.2 Ops/sec
objectInAndDestructured: Parameter object with spreading 3428903.2 Ops/sec
objectInAndDestructured: New parameter object from values 4887903.5 Ops/sec
objectInAndDestructured: New parameter object from object 1601587.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