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
7 years ago
Test name Executions per second
Empty object with short method 989850.9 Ops/sec
Empty object with long method 1219277.0 Ops/sec
Full object with short method 1080830.0 Ops/sec
Full object with long method 998664.9 Ops/sec
Empty object with shorter method 1209608.0 Ops/sec
Full object with shorter method 1084573.0 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