Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72c Safari/602.1
Mobile Safari 10
iOS 10.1
iPhone
8 years ago
Test name Executions per second
Empty object with short method 1114301.1 Ops/sec
Empty object with long method 1371158.6 Ops/sec
Full object with short method 1122374.5 Ops/sec
Full object with long method 1054558.0 Ops/sec
Empty object with shorter method 1363583.4 Ops/sec
Full object with shorter method 1044340.2 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