Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Classnames vs CLSX vs cx v2

Compare CLSX vs Classnames vs an simpliest implementation of creating a template string

Classnames vs CLSX vs cx

Compare CLSX vs Classnames vs an simpliest implementation of creating a template string

Set vs array.includes

No description provided

classList.contains vs. RegExp.test

No description provided

bool check

check bool type check variante

Ternary vs conditional OR

No description provided

Memoization (Object, WeakMap)

No description provided

innerhtml vs removechild vs remove vs innerText vs textContent vs replaceChildren (100)

No description provided

innerhtml vs removechild vs remove vs innerText vs textContent vs replaceChildren

No description provided

innerhtml vs removechild vs removeChildre vs remove vs innerText vs textContent

No description provided

lodash uniq (with .push) vs set (with .add)

No description provided

Remove all children from DOM element-1a

No description provided

Remove all children from DOM element-1

No description provided

Lodash.get vs safeGet vs Null operator

No description provided

html TextEncoder().encode

No description provided

trycatch-benchmark-sum

No description provided

Init array with fill map, vs for i loop

People tend to use array fil and then foreach, we know foreach is faster than a for loop, but is it also faster if you use array fill first?

normalize / trim text

No description provided

array vs frozen array loop

No description provided

structuredClone vs Immer Produce simple

No description provided

Delete vs destructure for object 2

No description provided

Delete vs destructure for object

No description provided

DataAttribute vs Class Selector vs ID Selector vs Class & Data Attribute Selector

No description provided

Search RegExp vs includes vs match

No description provided

for vs foreach vs some vs for..of with modern var declarations

Compare loop performance