Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Midori/6
Safari 13
Linux
Desktop
3 years ago
Test name Executions per second
Origin [easy input] 2506358.8 Ops/sec
Optimized 2 with lazy [easy input] 2435141.5 Ops/sec
Origin [hard input] 2495110.2 Ops/sec
Optimized 2 with lazy [hard input] 2436653.2 Ops/sec
Optimized 3 [easy input] 2435160.0 Ops/sec
Optimized 3 [hard input] 2621832.0 Ops/sec
runAllOrigin [easy input] 1128.1 Ops/sec
runAllOrigin [hard input] 218455.5 Ops/sec
runAll Oprimized [easy input] 1254.2 Ops/sec
runAll Oprimized [hard input] 274792.0 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]