Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Mac OS X 10.13
Desktop
6 years ago
Test name Executions per second
tail-end recursion (ascending) 5445252.0 Ops/sec
iterative (descending) 5840739.5 Ops/sec
iterative (descending) #2 24335086.0 Ops/sec
iterative (descending) #3 24873978.0 Ops/sec
iterative (descending) #4 23956150.0 Ops/sec
Script Preparation code:
Tests:
  • tail-end recursion (ascending)

  • iterative (descending)

  • iterative (descending) #2

  • iterative (descending) #3

  • iterative (descending) #4


;