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
Testing computational speed for using Typed Array, JSON Array Object and JS Object
<script src="https://www.calormen.com/polyfill/typedarray.js"></script>
var testSize = 2000;
var ui8 = new Uint8Array(testSize);
var i8 = new Int8Array(testSize);
var ui16 = new Uint16Array(testSize);
var i16 = new Int16Array(testSize);
var ui32 = new Uint32Array(testSize);
var i32 = new Int32Array(testSize);
var f32 = new Float32Array(testSize);
var f64 = new Float64Array(testSize);
var array = new Array(testSize);
var obj = {};
var i = testSize; while(i--) obj[i] = 0;
Ready to run.
Test | Ops/sec | |
---|---|---|
Uint8 |
| ready |
Int8 |
| ready |
Uint16 |
| ready |
Int16 |
| ready |
Uint32 |
| ready |
Int32 |
| ready |
Float32 |
| ready |
Float64 |
| ready |
Array |
| ready |
Object |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.