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 = {m00: 0, m01: 1, m02: 3, m10: 4, m11: 5, m12: 6}
function test1() {
const {m00, m01, m02, m10, m11, m12} = obj
return m00 + m01 + m02 + m10 + m11 + m12
}
function test2() {
const m00 = obj.m00
const m01 = obj.m01
const m02 = obj.m02
const m10 = obj.m10
const m11 = obj.m11
const m12 = obj.m12
return m00 + m01 + m02 + m10 + m11 + m12
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Destructuring assignment |
| ready |
Ordinary assignment |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.