Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

slice vs spread performance

Compare the new ES6 spread operator with the traditional slice() method

【JiangNanGame】traditional string concat vs template string concat

No description provided

Array.prototype.slice vs spread operator on objects

No description provided

Get param query-string vs URLSearchParams

Read one parameter from the URL query

Check if is thennable, check if is instanceof Promise, or just await

No description provided

Check await or just await

No description provided

Array.join vs String join

No description provided

_.find() vs [].find()

Lodash vs ES6 비교

getFloatFrequencyData vs getByteFrequencyData

No description provided

Generate combinations

No description provided

Fill an MxN 2D nested array with random numbers

No description provided

a123322

a

a123321

a

createElement vs cloneNode vs innerHTML vs innerHTML(single innerHTML)

Faster way to create new dom elements before insertion

2D nested array of numbers deep copy

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`.

remainder or floor 2

Is integer division faster using reminder and subtraction or using Math.floor?

My Check - RegEx.test vs. String.includes vs. String.match vs String.IndexOf

No description provided

Array concat vs spread vs push spread, loop, apply Huge arrays

Compare the new ES6 spread operator with the traditional concat() method and push

Chilinh --> RegEx.test vs. String.includes vs. String.match vs String.IndexOf

No description provided

set.has vs. array.includes (0)

No description provided

setAttribute(...) vs. classList.add(...) vs classList.value vs className (multiple classes, no override)

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

lodash uniq vs spread new Set()

No description provided

setAttribute(...) vs. classList.add(...) vs classList.value vs className (multiple classes)

No description provided

getAttribute(...) vs classList.value vs className

No description provided

String concatenation vs array join [previous author fucked up in more ways than one]

No description provided