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:
7 months ago
lodash
8K/s
native
2K/s
View exact numbers
Test name
Executions per second
✓
lodash
8,139 Ops/sec
native
1,740 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)