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
https://twitter.com/jaffathecake/status/306706682552143872
jaffathecake: Avoid "+new Date" to generate timestamps during animation. Use "Date.now()" or "performance.now()" instead http://t.co/Hle0qzxWeZ
var perf = performance,
perfNow = window.performance.now;
dateNow = Date.now;
Ready to run.
Test | Ops/sec | |
---|---|---|
Date.now |
| ready |
Cached Date.now |
| ready |
new Date().getTime() |
| ready |
new Date().valueOf() |
| ready |
Number(new Date) |
| ready |
+new Date() |
| ready |
performance.now() |
| ready |
Cached performance object |
| ready |
Cached performance.now method |
| ready |
window.performance.now() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.