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
Use the library-provided equals() function, instead of performing inline floating-point comparison.
<!-- 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>// random matrix
function randm(size) {
return new Float32Array(size).map(el => el = Math.random() * 100);
}Ready to run.
| Test | Ops/sec | |
|---|---|---|
| old vec2.equals() | | ready |
| new vec2.equals() | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.