jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Test of a $.grep embedded in a $.grep vs a for loop embedded in a for loop.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
var joinVar = 1;
var a = [{
a: 1
}, {
a: 2
}, {
a: 3
}, {
a: 4
}, {
a: 5
}, {
a: 6
}, {
a: 7
}, {
a: 8
}, {
a: 9
}, {
a: 10
}];
var b = [{
joinVar: 1,
a: 1
}, {
joinVar: 2,
a: 1
}, {
joinVar: 1,
a: 2
}, {
joinVar: 2,
a: 2
}];
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery grep |
| ready |
for... in...for.. in |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.