Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

startsWith vs substring vs indexOf

startsWith vs substring vs indexOf

binaryStringPad

testing 3 methods of padding binary string

string vs number vs symbol

No description provided

String() vs .toString() vs Concatenation vs Template string

No description provided

Caching length property vs getting it each time in the loop - ak

save length of the array in the variable vs get it the loop

new Date("2020-03-20 0:04:02").getDate()

No description provided

Iteration Speed 2

No description provided

StringInterpolation vs stringConcatenation

No description provided

Teste some vs find

No description provided

Some vs Find 100k items

No description provided

Array loop vs foreach (static & index)

No description provided

case insensitive comparison

No description provided

slice vs substring check010

slice vs substring

Different ways (template importNode, vanilla js, innerHTML) to create DOM node

No description provided

DOM get attributes of children vs JS Array READ performance v3

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

Fastest way to list children: childNodes vs children vs firstChild/nextSibling vs firstElementChild/nextElementSibling v2 fixed

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

Fastest way to list children: childNodes vs children vs firstChild/nextSibling vs firstElementChild/nextElementSibling v2

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

foreach vs map by wayne

No description provided

1 iter vs 3 iter 3

No description provided

1 iter vs 3 iter

No description provided

Direct Array vs Typed Array vs Array read performances

No description provided

EGO Intersection lodash vs underscore vs manual

No description provided

createTextNode vs createComment

No description provided

reverseArray

No description provided

map speed

No description provided