Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

flatMap() vs filter().map() vs reduce() vs for-loop v1

flatMap vs filter map vs reduce()

flatMap() vs filter().map() vs reduce() v4

flatMap vs filter map vs reduce()

flatMap() vs filter().map() vs reduce() v3

flatMap vs filter map vs reduce()

Find in array

Finds if a string is inside an array of strings

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.

Math.random vs crypto.getRandom Alberto

No description provided

trim-loadsh vs native-trim1

No description provided

Canvas clearing performance v3

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

Javascript Sorting Algorithmzzz

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

Compare lodash isEmpty and length comparison on arrays, stings and custom function isEmpty

No description provided

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

Index vs slice

No description provided

Parse snippet 2

No description provided

Parse snippet

No description provided

Array concat vs spread operator vs push123123

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

FSM - Array spread vs Array push

No description provided

string-interpolation-vs-concatenation-for-random-numbers

No description provided

new Date from UNIX timestamp vs ISO string

No description provided

getElementById vs querySelectorrthtyj

No description provided

lodash omit

No description provided

Direct property lookup vs in vs typeof

No description provided

toFixed vs toPrecision vs Math.round() vs Math.floorfast3

No description provided

toFixed vs toPrecision vs Math.round() vs Math.floorfast2

No description provided

in vs hasOwnProperty

No description provided

vue updated vs watch

No description provided