Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1
Mobile Safari 10
iOS 10.0.2
iPhone
8 years ago
Test name Executions per second
Empty object with short method 703347.8 Ops/sec
Empty object with long method 1008971.3 Ops/sec
Full object with short method 701142.2 Ops/sec
Full object with long method 731788.7 Ops/sec
Empty object with shorter method 1006550.7 Ops/sec
Full object with shorter method 736686.9 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