Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.prototype.every vs Lodash every_2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0
Browser:
Firefox 125
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 years ago
Array.prototype.every
1167.2M/s
Lodash every
57.5M/s
View exact numbers
Test name
Executions per second
✓
Array.prototype.every
1,167,179,136 Ops/sec
Lodash every
57,540,708 Ops/sec
HTML Preparation code:
<script src="lodash.js"></script>
Script Preparation code:
var array = [...Array(100000).keys()]; var ram = Math.floor(100000 * Math.random());
Tests:
Array.prototype.every
array.every(n => n === ram)
Lodash every
_.every(array,n => n === ram)