Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
test-lodash-and-native-methods
Test
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/121.0.0.0 Safari/537.36 Edg/121.0.0.0
Browser:
Chrome 121
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Native
43/s
Lodash
17/s
View exact numbers
Test name
Executions per second
✓
Native
43 Ops/sec
Lodash
17 Ops/sec
HTML Preparation code:
<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js'></script>
Script Preparation code:
var value = _.times(1000000).map(x => ({ a: x }));
Tests:
Lodash
_.each(value, function(v,i) { v.a += i })
Native
value.forEach(function(v,i) { v.a += i })