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>
var SIZE = 10;
var arr = [],
i8 = new Int8Array( SIZE ),
u8 = new Uint8Array( SIZE ),
i16 = new Int16Array( SIZE ),
u16 = new Uint16Array( SIZE ),
i32 = new Int32Array( SIZE ),
u32 = new Uint32Array( SIZE );
for ( var i = 0; i < SIZE; i++ ) {
arr[i] = 0;
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
i8 |
| ready |
u8 |
| ready |
i16 |
| ready |
u16 |
| ready |
i32 |
| ready |
u32 |
| ready |
arr |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.