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
var fastuid = () => ("00000" + (Math.random()*Math.pow(36,5) << 0).toString(36)).slice(-5);
var fastuid2a = () =>fastuid()+fastuid()+fastuid()+fastuid()+fastuid()+fastuid()+fastuid()+fastuid();
var fastuid2b = () =>Array.apply(null, Array(8)).map(String.prototype.valueOf,("00000" + (Math.random()*Math.pow(36,5) << 0).toString(36)).slice(-5));
var fastuid3 = ()=>(1e40+'').replace(/[018]/g,a=>(a^Math.random()*16>>a/4).toString(16));
Ready to run.
Test | Ops/sec | |
---|---|---|
fastuid2a() |
| ready |
fastuid3() |
| ready |
fastuid2b() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.