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
<script>
var x = 10,
y = 7;
var _ceil = function(n) {
var f = (n << 0),
f = f == n ? f : f + 1;
return f;
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Math.floor |
| ready |
Math.floor with parseInt |
| ready |
Math.floor with bitwise or |
| ready |
Math.ceil |
| ready |
Math.ceil with parseInt |
| ready |
Math.ceil with bitwise or () |
| ready |
custom _ceil |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.