Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Chrome 53
Windows 8.1
Other
8 years ago
Test name Executions per second
Original 65552.6 Ops/sec
Improvement 81474.3 Ops/sec
Recursion 1247924.9 Ops/sec
Reverse Engineered Recursion 4302333.5 Ops/sec
Matt Solution 1220731.1 Ops/sec
Script Preparation code:
Tests:
  • Original

  • Improvement

  • Recursion

  • Reverse Engineered Recursion

  • Matt Solution