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
foo = foo || {}; vs foo = !!foo ? foo : {};
var simpleString = 'foo';
var PJO = { bar: 'bar' };
var simpleArray = [1, 2, 3];
var simpleEmpty;
var simpleTrue = true;
var simpleFalse = false;
Ready to run.
Test | Ops/sec | |
---|---|---|
OR - string |
| ready |
OR - PJO |
| ready |
OR - Array |
| ready |
OR - Empty |
| ready |
OR - boolean true |
| ready |
OR - boolean false |
| ready |
Exclamation - string |
| ready |
Exclamation - PJO |
| ready |
Exclamation - Array |
| ready |
Exclamation - undefined |
| ready |
Exclamation - boolean true |
| ready |
Exclamation - boolean false |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.