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
Do try to cache new Date()!!! Do try to use high precsision performance timing API!!! Any suggestions, gentlemen, ;P ???? What can we cache? Do I really have to use loops here?
Ready to run.
Test | Ops/sec | |
---|---|---|
+new Date |
| ready |
cached (new Date()) |
| ready |
(new Date).getTime() |
| ready |
new Date/1 |
| ready |
cached.valueOf() |
| ready |
performance.now() |
| ready |
Date.now() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.