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
This is to test the slowness of a Float32Array
<script>
var id = 0
var b = [0, 0, 0];
var Arraychosen = function(n) {
if (n == 3) {
return b.slice(0);
};
};
var Arraychosen2 = function(n) {
var x = [],
i;
for (i = 0; i < n; i++) {
x.push(0);
};
return x;
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
new Float32Array |
| ready |
Array |
| ready |
Array clone |
| ready |
Array iterate |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.