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 arraySize = 2000;
var nativeArray = new Array(arraySize);
var int8Array = new Int8Array(arraySize);
var int16Array = new Int16Array(arraySize);
var int32Array = new Int32Array(arraySize);
var float32Array = new Float32Array(arraySize);
var float64Array = new Float64Array(arraySize);
</script>
var sum = 0;
Ready to run.
Test | Ops/sec | |
---|---|---|
Native Read |
| ready |
Int32 Read |
| ready |
Float32 Write |
| ready |
Native Write |
| ready |
Int32 Write |
| ready |
Float32 Read |
| ready |
Int16 Write |
| ready |
Int16 Read |
| ready |
Int8 Write |
| ready |
Int8 Read |
| ready |
Alternative Native Write |
| ready |
Float64 Read |
| ready |
Float64 Write |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.