Benchmark name When Created
multiple selectors vs multiple matches

Is it faster to check if a full selector matches an element or if individual selectors match? One matching selector is FASTER than many by a factor of x3 (which only gets worse as more selectors are searched, > 1000 is like x7) HOWEVER, if you need to determine WHICH selectors match, that requires you to do the individual search, at which point your search is actually a quarter worse than just doing the individual search at the start. nullifying much of the savings. If a match will be RARE, it could make sense to do the full string. however, if a match is common, I'd just stick with the individual matching from the start.

2 years ago
Math.random vs crypto.getRandom Alberto 2 years ago
trim-loadsh vs native-trim1 2 years ago
Canvas clearing performance v3

https://stackoverflow.com/questions/2142535/how-to-clear-the-canvas-for-redrawing

2 years ago
Javascript Sorting Algorithmzzz

Port from jsperf(https://jsperf.com/sorting-algorithms/58)

2 years ago
Compare lodash isEmpty and length comparison on arrays, stings and custom function isEmpty 2 years ago
Compare lodash isEmpty and length comparison on strings

Comparing performance of: isEmpty empty strings vs length empty strings isEmpty filled string vs length filled string

2 years ago
Index vs slice 2 years ago
Parse snippet 2 2 years ago
Parse snippet 2 years ago
Array concat vs spread operator vs push123123

Compare the new ES6 spread operator with the traditional concat() method and push

2 years ago
FSM - Array spread vs Array push 2 years ago
string-interpolation-vs-concatenation-for-random-numbers 2 years ago
new Date from UNIX timestamp vs ISO string 2 years ago
getElementById vs querySelectorrthtyj 2 years ago
lodash omit 2 years ago
Direct property lookup vs in vs typeof 2 years ago
toFixed vs toPrecision vs Math.round() vs Math.floorfast3 2 years ago
toFixed vs toPrecision vs Math.round() vs Math.floorfast2 2 years ago
in vs hasOwnProperty 2 years ago
vue updated vs watch 2 years ago
String.split(regExp) vs String.split(string) 2 years ago
Add rows to Table: insertRow() vs insertAdjacentHTML

Vannilla JS version, no jquery

2 years ago
get precision from number string

with ignoring trailing zeroes, the function should return the precision (decimal places) of a number (decimal or non-decimal)

2 years ago
Comparing sum of array elements between Native and lodash and some more for loops 2 years ago

 New benchmark Your benchmarks