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) 5542822.0 Ops/sec
iterative (descending) 6348446.0 Ops/sec
iterative (descending) #2 25146106.0 Ops/sec
iterative (descending) #3 25662526.0 Ops/sec
iterative (descending) #4 25285730.0 Ops/sec
Script Preparation code:
Tests:
  • tail-end recursion (ascending)

  • iterative (descending)

  • iterative (descending) #2

  • iterative (descending) #3

  • iterative (descending) #4


;