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

```
function ParseIntHash(x, y) {
x = parseInt(x) - (parseInt(x) % 10);
y = parseInt(y) - (parseInt(y) % 10);
return x + "|" + y;
}
function TruncIntHash(x, y) {
x = Math.trunc(x) - (Math.trunc(x) % 10);
y = Math.trunc(y) - (Math.trunc(y) % 10);
return x + "|" + y;
}
var X = Math.random() * 1000 - 500;
var Y = Math.random() * 1000 - 500;
var RESULT = 0;
```

Ready to run.

Test | Ops/sec | |
---|---|---|

Parse Integer |
| ready |

Trunc Integer |
| ready |

You can edit these tests or add more tests to this page by appending /edit to the URL.

- Revision 1: published on
- Revision 2: published on
- Revision 3: published on
- Revision 4: published on
- Revision 5: published on
- Revision 6: published on
- Revision 8: published on