Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
lodash range
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Browser:
Chrome 143
Operating system:
Windows
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
native
1740.0 Ops/sec
lodash
8139.2 Ops/sec
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)