Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Lodash isequal vs string comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Lodash.js filter
39.3M/s
Native
7/s
View exact numbers
Test name
Executions per second
✓
Lodash.js filter
39,342,556 Ops/sec
Native
7 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var max = 10000000; var arr2 = []; for (var i = 0; i <= max; i++) { arr2.push(String(i)); } arr2.push('asd') var arr3 = []; for (var i = 0; i <= max; i++) { arr3.push(String(i)); } arr2.push('foo')
Tests:
Native
let isEqual = true arr2.forEach(function (item, idx) { isEqual = item === arr3[idx]; });
Lodash.js filter
_.isEqual(arr2, arr3);