Browse the latest JavaScript performance benchmarks created by the community.
No description provided
a
a
Faster way to create new dom elements before insertion
I kept only the test cases that produced usable results for me (ops/sec>100). Others I tried were nested `newArr.push()`, `JSON.parse(JSON.stringify())`, `arr.map(item => Object.assign([], arr))`, and `structuredClone()`. For me, `map concat` runs the fastest, followed closely by `map slice` and then `map spread`.
Is integer division faster using reminder and subtraction or using Math.floor?
No description provided
Compare the new ES6 spread operator with the traditional concat() method and push
No description provided
No description provided
Same as https://www.measurethat.net/Benchmarks/Show/27015/0/setattribute-vs-classlistadd-vs-classlistvalue-vs-class but without override, getter chosen based on https://www.measurethat.net/Benchmarks/Show/27014/0/getattribute-vs-classlistvalue-vs-classname
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
What is going on?!
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided