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
...and some extra logic to handle ints. ::sigh::
var n = Math.random() * 1e8,
Utils = {
bitwiseCeil: function(n) {
var f = (n << 0);
return f == n ? f : f + 1;
},
bitwiseCeil2: function(n) {
var f = (n << 0);
return f === n ? f : f + 1;
}
};
function bitwiseCeil(n) {
var f = (n << 0);
return f == n ? f : f + 1;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Math.ceil |
| ready |
<< |
| ready |
Bitwise In function |
| ready |
Bitwise in class [1] |
| ready |
Bitwise in class [2] |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.