Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Origin [easy input] 2976573.8 Ops/sec
Optimized 2 with lazy [easy input] 2877479.8 Ops/sec
Origin [hard input] 3012817.2 Ops/sec
Optimized 2 with lazy [hard input] 2985489.5 Ops/sec
Optimized 3 [easy input] 3295794.5 Ops/sec
Optimized 3 [hard input] 3309838.8 Ops/sec
Script Preparation code:
Tests:
  • Origin [easy input]

  • Optimized 2 with lazy [easy input]

  • Origin [hard input]

  • Optimized 2 with lazy [hard input]

  • Optimized 3 [easy input]

  • Optimized 3 [hard input]

  • runAllOrigin [easy input]

  • runAllOrigin [hard input]

  • runAll Oprimized [easy input]

  • runAll Oprimized [hard input]