Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
jQuery Each vs For
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/132.0.0.0 Safari/537.36
Browser:
Chrome 132
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
For
97K/s
jQuery Each
82K/s
View exact numbers
Test name
Executions per second
✓
For
97,123 Ops/sec
jQuery Each
81,641 Ops/sec
HTML Preparation code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
Tests:
jQuery Each
var test = ['fe', 'fi', 'fo', 'fum']; $.each(test, function (ind, val) { console.log(val); });
For
var test = ['fe', 'fi', 'fo', 'fum']; for(var i = 0, j = test.length; i < j; i += 1){ console.log(test[i]); }