Run details:
Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4086.0 Safari/537.36
Chrome 83
Windows
Desktop
3 years ago
Test name Executions per second
Spread and reverse 19119.5 Ops/sec
Slice and reverse 4792.7 Ops/sec
For loop 97505.8 Ops/sec
Script Preparation code:
Tests:
  • Spread and reverse

  • Slice and reverse

  • For loop