Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash range2
(version: 1)
Comparing performance of:
native vs lodash
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js"></script>
Script Preparation code:
n = 80000 list1 = Array.from({length: n}, () => Math.floor(Math.random() * n)) list2 = Array.from({length: n}, () => Math.floor(Math.random() * n))
Tests:
native
/*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/ list1.map((_, index) => index)
lodash
_.range(list2.length)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
native
lodash
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
native
7132.4 Ops/sec
lodash
10067.4 Ops/sec
Related benchmarks:
Lodash, Set, Array comparison
Lodash, Set, Array comparison v2
Lodash, Set, Array, Native comparison
lodash vs map 4
Iteration
spread against without
lodash vs map 5
lodash uniq vs set my 2
lodash range
Comments
Confirm delete:
Do you really want to delete benchmark?