Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

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

Compare loop performance

ForOf vs Map

No description provided

Lodash isEqual test v4.17.21

No description provided

math vs to fixed

No description provided

eval vs Json.parse

No description provided

Object.fromEntries vs reduce fork

No description provided

MAGENTA PutImageData vs fillRect

GetImageData with PutImageData vs just DrawImage

Fetch cookie value

No description provided