Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
chunk - lodash vs native splice
(version: 1)
Comparing performance of:
lodash vs native
Created:
6 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
const array = Array.from({ length: 100000 }, () => Math.random())
Tests:
lodash
_.chunk(array, 10)
native
[...Array(Math.ceil(array.length / 10))].map(_ => array.splice(0, 10))
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Browser/OS:
Chrome 141 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash
165663424.0 Ops/sec
native
84626352.0 Ops/sec
Related benchmarks:
native slice vs lodash slice
native slice vs lodash slice 1M
native-slice-vs-chunk
lodash chunk vs native
native slice vs lodash chunk
native slice vs native reduce vs lodash chunk
Chunks (2023.2)
Lodash Chunk vs Native Chunk
native-splice-vs-chunk
Comments
Confirm delete:
Do you really want to delete benchmark?