Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

String.split(regExp) vs String.split(string)

No description provided

Add rows to Table: insertRow() vs insertAdjacentHTML

Vannilla JS version, no jquery

get precision from number string

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

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

No description provided

indexOf vs map vs map2

No description provided

sumOfEventNumbers-vanilla-vs-rxjs-7

No description provided

createTextNode(and removeChild), textContent, innerText, innerHTML, nodeValue (HTML)

<a> tag has a child (space), so nodeValue works correctly this way

concatenation vs template literal

No description provided

Add rows to Table: insertRow() vs appending innerHTML vs insertAdjacentHTML

Vannilla JS version, no jquery

Dynamic Create of Table: insertRow() vs appending HTML

Vannilla JS version, no jquery

Lodash vs Native reduce + Object.keys for collections

No description provided

Math.pow vs ** vs * forcing floats vs bigint

A minor update to see if forced floats perform differently than ints and also see how BigInts compare (note: Math.pow does not work on BigInts).

for-in vs object.keys vs for..of object.keys

No description provided

filter-map vs reduce fixed

modified version of `map-filter vs reduce` that switches the order of operations Original was not fair comparison as it mapped all iterations not just the ones that passed the filter

find vs loop array test bigger array

performance find item in loop vs find item with array.find