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 obj = {
x: 10,
y: 15,
z: 20
};
var _obj = {};
var a = 10;
var b = 15;
var c = 20;
var arr = [10, 15, 20];
var f32 = new Float32Array(arr);
var f64 = new Float64Array(arr);
var i8 = new Int8Array(arr);
var i16 = new Int16Array(arr);
var i32 = new Int32Array(arr);
var ui8 = new Uint8Array(arr);
//var ui8c = new Uint8ClampedArray(arr);
var ui16 = new Uint16Array(arr);
var ui32 = new Uint32Array(arr);
var _arr = new Array(3);
var _f32 = new Float32Array(3);
var _f64 = new Float64Array(3);
var _i8 = new Int8Array(3);
var _i16 = new Int16Array(3);
var _i32 = new Int32Array(3);
var _ui8 = new Uint8Array(3);
//var _ui8c = new Uint8ClampedArray(3);
var _ui16 = new Uint16Array(3);
var _ui32 = new Uint32Array(3);
Ready to run.
Test | Ops/sec | |
---|---|---|
Object properties |
| ready |
Array items |
| ready |
Object property names |
| ready |
Float32Array items |
| ready |
Float64Array items |
| ready |
Int8Array items |
| ready |
Int16Array items |
| ready |
Int32Array items |
| ready |
Uint8Array items |
| ready |
Uint8ClampedArray items |
| ready |
Uint16Array items |
| ready |
Uint32Array items |
| ready |
write Object properties |
| ready |
write Array items |
| ready |
write Object property names |
| ready |
write Float32Array items |
| ready |
write Float64Array items |
| ready |
write Int8Array items |
| ready |
write Int16Array items |
| ready |
write Int32Array items |
| ready |
write Uint8Array items |
| ready |
write Uint8ClampedArray items |
| ready |
write Uint16Array items |
| ready |
write Uint32Array items |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.