Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash.js vs Nativee
(version: 1)
Comparing performance of:
Native vs Lodash.js filter
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var max1 = 100000; // 100,000 (100 Thousand) var max2 = 10000000; // 10,000,000 (10 Million) var max3 = 100000000; // 100,000,000 (100 Million) var arr1 = []; //for (var i = 0; i <= max1; i++) { arr1.push(i); } var arr2 = []; for (var i = 0; i <= max2; i++) { arr2.push(i); } var arr3 = []; //for (var i = 0; i <= max3; i++) { arr3.push(i); }
Tests:
Native
arr2.map(function (element, index) { return element*2; });
Lodash.js filter
_.map(arr2, function (element, index) { return element*2; });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Native
Lodash.js filter
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Native
14.1 Ops/sec
Lodash.js filter
36.4 Ops/sec
Related benchmarks:
Lodash.js vs Native
Lodash.js vs Native,k
Lodash.js vs Javascript
Lodash.js vs Native 2
Lodash.js vs Native false v2
Lodash.js vs Native 112
Lodash.js vs Native is null111
lodash vs native for
Lodash.js vs Nativemmlk
Comments
Confirm delete:
Do you really want to delete benchmark?