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
Branchless version of glMatrix.round().
<!-- GLMatrix Update -->
<script src="https://rawcdn.githack.com/solarunes/gl-matrix/771dfba6e47e6ac001bc3e6152d4c1c86a268e52/dist/gl-matrix-min.js"></script>
<script>
window.glMatrixUpdate = glMatrix;
delete glMatrix;
</script>
<!-- GLMatrix v3.4.4 (release) -->
<script src="https://cdn.jsdelivr.net/npm/gl-matrix@3.4.4/gl-matrix-min.min.js"></script>function randnum() {
return Math.random() * 100;
}Ready to run.
| Test | Ops/sec | |
|---|---|---|
| old round() | | ready |
| new round() | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.