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
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js" referrerpolicy="no-referrer"></script>
const valid = '2025-03-05T19:39:00.567';
const validUtc = '2025-03-05T23:39:00.567Z';
const validLocal = '2021-10-20T14:04:27.68-04:00';
const invalid = 'F64540b2-f058-4a26-aa0e-b624948d4622';
const regex = /^(?:[1-9]\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d{1,9})?(?:Z|[+-][01]\d:[0-5]\d)$/;
Ready to run.
Test | Ops/sec | |
---|---|---|
moment isValid |
| ready |
moment isValid UTC |
| ready |
moment isValid Local |
| ready |
moment isValid Invalid |
| ready |
regex |
| ready |
regex UTC |
| ready |
regex Local |
| ready |
regex invalid |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.