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
The smallest setTimeout
timeout value allowed by the HTML5 specification is 4 ms. Smaller values should clamp to 4 ms.
Therefore, the first two tests below should have about the same result.
P.S. Some browsers freak out when you use a value greater than 599147937791
for the timeout (i.e. they use 0 or 4 ms instead), hence the last test.
Ready to run.
Test | Ops/sec | |
---|---|---|
timeout = 0 |
| ready |
timeout = 4 |
| ready |
timeout = 10 |
| ready |
timeout = 40 |
| ready |
timeout = 2 |
| ready |
timeout = 1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.