Benchmark name When Created
forEach vs filter vs for one year ago
lodash flatMap() vs lodash filter().map()

lodash flatMap vs lodash filter map

one year ago
reduce() push vs reduce() spread

in a reduce(), is it better to push to the accumulator or return a spread of the accumulator with the new value in it

one year ago
Array concat vs spread operator vs push *1000

Compare the new ES6 spread operator with the traditional concat() method and push, with target array growing

one year ago
slice vs spread performance

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

one year ago
【JiangNanGame】traditional string concat vs template string concat one year ago
Array.prototype.slice vs spread operator on objects one year ago
Get param query-string vs URLSearchParams

Read one parameter from the URL query

one year ago
Check if is thennable, check if is instanceof Promise, or just await one year ago
Check await or just await one year ago
Array.join vs String join one year ago
_.find() vs [].find()

Lodash vs ES6 비교

one year ago
getFloatFrequencyData vs getByteFrequencyData one year ago
Generate combinations one year ago
Fill an MxN 2D nested array with random numbers one year ago
a123322

a

one year ago
a123321

a

one year ago
createElement vs cloneNode vs innerHTML vs innerHTML(single innerHTML)

Faster way to create new dom elements before insertion

one year ago
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`.

one year ago
remainder or floor 2

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

one year ago
My Check - RegEx.test vs. String.includes vs. String.match vs String.IndexOf one year ago
Array concat vs spread vs push spread, loop, apply Huge arrays

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

one year ago
Chilinh --> RegEx.test vs. String.includes vs. String.match vs String.IndexOf one year ago
set.has vs. array.includes (0) one year ago
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

one year ago

 Create Your benchmarks