Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Inlining

No description provided

join vs string + trim vs filter + join

No description provided

for vs for in vs for of vs forEach (no length)

Put array length outside of the loop

char index vs charAt() vs slice() vs substr()

Compare methods for testing string's beggining character.

Fast deep equal

No description provided

js private field

No description provided

Object literal vs JSON.parse fork

As long as the JSON string is only evaluated once, the JSON.parse approach is much faster compared to the JavaScript object literal, especially for cold loads.

js find vs lodash find

No description provided

Find object from array

No description provided

Math.max vs. custom max

N/A

Math.max vs. custom algormithm

N/A

Math.max vs ternary (patched)

No description provided

Math.max vs ternary

No description provided

Rest parameters vs array parameter with empty parameters

No description provided

Rest parameters vs array parameter

No description provided

JS find vs indexOf 4

JS find vs findIndex

JS find vs indexOf 3

JS find vs indexOf

JS find vs indexOf 2

JS find vs indexOf

lodash uniq vs set vs uniqSort

No description provided

Lodash vs Javascript benchmarks DrewM4

No description provided

for vs for in vs for of vs forEach

No description provided

string.replace with regex: presaved const vs inline

No description provided

remove lastChild vs replaceWith

No description provided

classnames vs classcat 2

No description provided

remove firstChild vs remove lastChild

No description provided