Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.1.32 (KHTML, like Gecko) Mobile/14B72c Twitter for iPhone
Mobile Safari 10
iOS 10.1
iPhone
8 years ago
Test name Executions per second
Empty object with short method 1139251.2 Ops/sec
Empty object with long method 1409698.6 Ops/sec
Full object with short method 1139789.0 Ops/sec
Full object with long method 1031442.0 Ops/sec
Empty object with shorter method 1396126.8 Ops/sec
Full object with shorter method 1119862.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