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
var size = 5000;
var f32 = new Float32Array(size);
var arr = new Array(size);
function runf32(){
for(var i=1; i<size; i++){
f32[i-1] = f32[i];
}
}
function runarr(){
for(var i=1; i<size; i++){
arr[i-1] = arr[i];
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
f32 - write |
| ready |
arr - write |
| ready |
f32-read |
| ready |
arr-read |
| ready |
f32 - mixed |
| ready |
arr - mixed |
| ready |
f32 - in fn mixed |
| ready |
arr - in fn mixed |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.