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 src="https://cdnjs.cloudflare.com/ajax/libs/vectorious/4.8.1/vectorious.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.11.5/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.3.2/gl-matrix.js"></script>
function randomArray(length) {
return Array.apply(null, Array(length)).map(function() {
return Math.round(Math.random());
});
}
var vectoriousA = Matrix.zeros(3, 3).map(Math.random);
var vectoriousB = Matrix.zeros(3, 3).map(Math.random);
var mathjsA = math.map(math.zeros(3, 3), Math.random);
var mathjsB = math.map(math.zeros(3, 3), Math.random);
var glMatrixA = mat3.fromValues.apply(randomArray(9));
var glMatrixB = mat3.fromValues.apply(randomArray(9));
var glMatrixOut = mat3.create();
Ready to run.
Test | Ops/sec | |
---|---|---|
vectorious 4.8.1 |
| ready |
math.js 3.11.5 |
| ready |
glMatrix 2.3.2 |
| ready |
glMatrix 2.3.2 Create |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.