Browse the latest JavaScript performance benchmarks created by the community.
startsWith vs substring vs indexOf
testing 3 methods of padding binary string
No description provided
No description provided
save length of the array in the variable vs get it the loop
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
slice vs substring
No description provided
Results: Reading the DOM with nextElementSibling + getAttribute is less than 5% slower than an JS array list. textContent is slightly faster than a JS array list, and nodeValue is 3X faster. Listing a JS array in a for i-- loop backwards yield ~2X performance
Result: firstElementChild is the fastest yielding 3-4X performance. With lastElementChild close (margin of error) 2nd. Other observations: doing for loop i-- with children shows ~150% higher performance vs i++. And unloading it into a variable prior yields another ~200% boost
Result: firstElementChild is the fastest yielding 3-4X performance. With lastElementChild close 2nd. Other observations: doing for loop i-- with children shows ~150% higher performance vs i++. And unloading it into a variable prior yields another ~200% boost
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided
No description provided