Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Chrome 60
Windows
Other
7 years ago
Test name Executions per second
Recursive 3662.3 Ops/sec
Iterative 133868.3 Ops/sec
Array Reduction 8127.3 Ops/sec
Memoization 171642.4 Ops/sec
Script Preparation code:
Tests:
  • Recursive

  • Iterative

  • Array Reduction

  • Memoization