Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
uderscore.each vs jQuery each
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 128
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
underscore.each
111974.8 Ops/sec
jQuery each
4087887.2 Ops/sec
HTML Preparation code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://underscorejs.ru/underscore.js"></script>
Script Preparation code:
// Populate the base array var arr = []; for (var i = 0; i < 1000; i++) { arr[i] = i; } function fn(a) { return a * 2 * 5; }
Tests:
underscore.each
_.forEach(arr,fn)
jQuery each
$.each(fn);