Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
underscore filter vs native
(version: 0)
Comparing performance of:
backbone vs native
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script>
Script Preparation code:
var iterations = 100000; var array = [0, 1, 2, 3, 5, 6, 7, 8, 9, 10];
Tests:
backbone
for (var i = 0; i < iterations; i++) { _.filter(array, function(element) { return element % 2 === 0 }); }
native
for (var i = 0; i < iterations; i++) { array.filter(function(element) { return element % 2 === 0 }); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
backbone
native
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/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Browser/OS:
Chrome 131 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
backbone
87.2 Ops/sec
native
377.8 Ops/sec
Related benchmarks:
Underscore filter vs Array filter
_.filter vs array filter (underscore)
Underscore.js _forEach() vs Native for loop for large arrays (rewrite)
underscore without vs filter
Comments
Confirm delete:
Do you really want to delete benchmark?