Benchmark name | When Created |
---|---|
For loop vs Index Of (1000000 case)
save length of the array in the variable vs get it the loop |
11 months ago |
Reverse Performance | 11 months ago |
array length perf | 11 months ago |
typeof number vs. Number.isNan vs. isNan vs self comparison. Versus let | 11 months ago |
lodash uniq vs spread new Set() medium size
This checks for medium sized duplicated input to contain unique entries |
11 months ago |
traverse vs NodeIterator vs TreeWalker vs document.querySelectorAll(*) (fix: querySelectorAll)
Let's compare the speed of 4 different ways to traverse the DOM. |
11 months ago |
toString() vs `${templateString}` | 11 months ago |
ISO Datetime - add microseconds - replace vs slice
ISO Datetime - add microseconds - replace vs slice |
11 months ago |
DOM vs Virtual DOM | 11 months ago |
querySelectorAll hover data attribute vs class name | 11 months ago |
if else return vs return | 11 months ago |
if else vs return | 11 months ago |
window.localStorage vs localStorage | 11 months ago |
1312312 | 11 months ago |
Number.isInteger() vs typeof
Is it faster to detect if a variable is an integer or is it faster to use typeof to verify the type? |
11 months ago |
Pushing vs Filling | 11 months ago |
Fetch vs axios | 11 months ago |
Math.max/min vs if vs ternary operatorsd | 11 months ago |
endsWith vs index
Checks endsWith vs index |
one year ago |
Should you cache Intl.DateTimeFormat (simple key)?
Testing creating a new Intl.DateTimeFormat each time vs. caching it using simple string as the key. |
one year ago |
inbuilt structuredClone vs deepClone | one year ago |
inbuilt structuredClone vs spread object | one year ago |
Object.values VS Object.entries VS Object.keys VS Object.keys VS Object.values with forEach | one year ago |
Array fill vs for i loop
People tend to use array fil and then foreach, we know foreach is faster than a for loop, but is it also faster if you use array fill first? |
one year ago |
Spread vs Array.from on querySelectorAll
Create array from Node.childNodes |
one year ago |