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 x = "456";
function _mathFloor(str){
return Math.floor(str);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
+0 * 0.1 |
| ready |
Math.floor |
| ready |
Math.floor function |
| ready |
/1 |
| ready |
parseFloat |
| ready |
+ 0 / 10 |
| ready |
Bitwise OR |
| ready |
Bitwise NOT |
| ready |
parseInt with base argument |
| ready |
* 1 |
| ready |
Multiply (force cast) |
| ready |
parseInt |
| ready |
Plus operator |
| ready |
Number Constructor |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.