Benchmark name When Created
Lodash cloneDeep vs structuredClone w/ larger payload

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

one year ago
Array.prototype.concat vs spread operator (2 separate arrays of same type)

Compare the ES6 spread operator with the traditional concat() method

one year ago
Array.prototype.concat vs spread operator (2 separate arrays)

Compare the ES6 spread operator with the traditional concat() method

one year ago
Javascript: Case insensitive string comparison performance inc. regex one year ago
textContent vs nodeValue vs data vs innerHTML vs append vs dataWithCheck one year ago
textContent vs nodeValue vs data vs innerHTML vs append one year ago
textContent vs nodeValue vs data vs innerHTML one year ago
textContent vs nodeValue vs data vs inner html one year ago
z-indexes collection and coercion one year ago
set node value one year ago
deeply nested Lodash.get vs Lodash.property vs native one year ago
Array iteration - filter vs forEach one year ago
parseInt vs Number mult one year ago
Boolean vs double bang !! one year ago
Slice vs Splice vs Shift single element

Compares the speed for removing 2 items from the beginning of an array

one year ago
document.createElement() vs. document.createDocumentFragment() one year ago
For-I vs For-of vs Reduce: Find the largest value in an array

A few of these cases are mostly to figure out how some changes impact optimisation. At the time of writing, each new test is based on the previous fastest test. So failed ideas don't reappear.

one year ago
Javascript: reduce VS for with Math.max

Compare the "reduce" method with "for" iteration and "for-of" iteration. We try to find the maximum value in a list of number. I also added Math.max with the spread operator.

one year ago
Math.pow(x,0.5) vs Math.sqrt(x) 2 one year ago
const vs let vs var asd one year ago
reduce+concat vs. for loops one year ago
getAttribute vs dataset 1002

Compare setAttribute to dataset

one year ago
replace vs replaceAll (native) one year ago
Array.toSpliced vs Array.filter

Test a speed difference between these 2 approaches

one year ago
[0] vs .shift() with empty array one year ago

 Create Your benchmarks