Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Chunks by for loop 40.5 Ops/sec
Chunks by reduceRight 13156712.0 Ops/sec
Chunks by lodash 4912170.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • chunks by reduceRight

  • chunks by lodash

  • splice from the beginning