Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash.js vs Javascript (meanBy)
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/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native
116.8 Ops/sec
Lodash
138.3 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
const data = Array.from({ length: 1_000_000 }, (_, i) => ({ value: i % 100 })); function nativeMeanBy(array, key) { const sum = array.reduce((acc, obj) => acc + obj[key], 0); return sum / array.length; } function lodashMeanBy(array, key) { return _.meanBy(array, key); }
Tests:
Native
nativeMeanBy(data, 'value')
Lodash
lodashMeanBy(data, 'value')