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 75356.3 Ops/sec
Improvement 85127.5 Ops/sec
Recursion 1109122.1 Ops/sec
Reverse Engineered Recursion 4726256.0 Ops/sec
Matt Solution 1320095.8 Ops/sec
Script Preparation code:
Tests:
  • Original

  • Improvement

  • Recursion

  • Reverse Engineered Recursion

  • Matt Solution