Benchmark name | When Created |
---|---|
Array.prototype.concat vs spread operator (2 separate arrays of same type)
Compare the ES6 spread operator with the traditional concat() method |
7 months ago |
Array.prototype.concat vs spread operator (2 separate arrays)
Compare the ES6 spread operator with the traditional concat() method |
7 months ago |
Javascript: Case insensitive string comparison performance inc. regex | 7 months ago |
textContent vs nodeValue vs data vs innerHTML vs append vs dataWithCheck | 7 months ago |
textContent vs nodeValue vs data vs innerHTML vs append | 7 months ago |
textContent vs nodeValue vs data vs innerHTML | 7 months ago |
textContent vs nodeValue vs data vs inner html | 7 months ago |
z-indexes collection and coercion | 7 months ago |
set node value | 7 months ago |
deeply nested Lodash.get vs Lodash.property vs native | 7 months ago |
Array iteration - filter vs forEach | 7 months ago |
parseInt vs Number mult | 7 months ago |
Boolean vs double bang !! | 7 months ago |
Slice vs Splice vs Shift single element
Compares the speed for removing 2 items from the beginning of an array |
7 months ago |
document.createElement() vs. document.createDocumentFragment() | 7 months 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. |
7 months 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. |
7 months ago |
Math.pow(x,0.5) vs Math.sqrt(x) 2 | 7 months ago |
const vs let vs var asd | 7 months ago |
reduce+concat vs. for loops | 7 months ago |
getAttribute vs dataset 1002
Compare setAttribute to dataset |
7 months ago |
replace vs replaceAll (native) | 7 months ago |
Array.toSpliced vs Array.filter
Test a speed difference between these 2 approaches |
7 months ago |
[0] vs .shift() with empty array | 7 months ago |
[0] vs .shift() | 7 months ago |