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
<svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg" id="canvas">
</svg>
const canvas = document.getElementById("canvas")
for(let i = 0; i < 1000; i++) {
const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
canvas.append(rect);
rect.setAttribute("id", "id-" + i);
}
let theMap = new Map();
const theSymbol = Symbol("the symbol");
while(canvas.children.length > 0) {
canvas.children[0].remove();
}
theMap = new Map();
Ready to run.
Test | Ops/sec | |
---|---|---|
Map test |
| ready |
Symbol test |
| ready |
AttributeTest |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.