Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
Chrome 55
Windows
Other
8 years ago
Test name Executions per second
Empty object with short method 989850.9 Ops/sec
Empty object with long method 1219276.6 Ops/sec
Full object with short method 1080830.2 Ops/sec
Full object with long method 998664.9 Ops/sec
Empty object with shorter method 1209607.9 Ops/sec
Full object with shorter method 1084573.1 Ops/sec
Script Preparation code:
Tests:
  • Empty object with short method

  • Empty object with long method

  • Full object with short method

  • Full object with long method

  • Empty object with shorter method

  • Full object with shorter method