Test name | Executions per second |
---|---|
Native splice | 22596606.0 Ops/sec |
lodash chunk | 11155541.0 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var test = Array.from({
length: 100000
}, () => Math.random())
test.splice(0,5000)
_.chunk(test,5000)