Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
Chrome 79
Mac OS X 10.15.2
Desktop
4 years ago
Test name Executions per second
Loop 4667031.5 Ops/sec
Recursive 8995.4 Ops/sec
Memoization 615068.6 Ops/sec
Recursive using Map as cache 5259535.5 Ops/sec
HTML Preparation code:
Tests:
  • Loop

  • Recursive

  • Memoization

  • Recursive using Map as cache


;