Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.prototype.slice vs spread operator for Array copy

Compare the new ES6 spread operator with the traditional slice() method

Switch vs Object Literal methods

No description provided

testperformanceloopmathmax

No description provided

toPrecision

No description provided

Testing 1231231: Concat vs Spread

This tests concat vs spreading two arrays into one.

parse list of bytes

No description provided

Uint8Array vs Uint32Array

No description provided

spread v push

No description provided

Conditions

No description provided

React Hooks vs. Inline, useMemo, memo

No description provided

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