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
var obj = {
items: []
};
obj.items = new Array(10000);
function process(el) {
var i = 500;
while (i--) {
el = i;
}
};
Ready to run.
Test | Ops/sec | |
---|---|---|
Basic for loop |
| ready |
For loop, but caching the length. |
| ready |
While loop that imitates a for loop. |
| ready |
While loop that imitates a for loop, caching the length. |
| ready |
While loop in reverse, simplifying the test condition. |
| ready |
forEach |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.