Benchmark name When Created
classList.contains vs. RegExp.test one month ago
bool check

check bool type check variante

one month ago
Ternary vs conditional OR one month ago
Memoization (Object, WeakMap) one month ago
innerhtml vs removechild vs remove vs innerText vs textContent vs replaceChildren (100) one month ago
innerhtml vs removechild vs remove vs innerText vs textContent vs replaceChildren one month ago
innerhtml vs removechild vs removeChildre vs remove vs innerText vs textContent one month ago
lodash uniq (with .push) vs set (with .add) one month ago
Remove all children from DOM element-1a one month ago
Remove all children from DOM element-1 one month ago
Lodash.get vs safeGet vs Null operator one month ago
html TextEncoder().encode one month ago
trycatch-benchmark-sum one month ago
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?

2 months ago
normalize / trim text 2 months ago
array vs frozen array loop 2 months ago
structuredClone vs Immer Produce simple 2 months ago
Delete vs destructure for object 2 2 months ago
Delete vs destructure for object 2 months ago
DataAttribute vs Class Selector vs ID Selector vs Class & Data Attribute Selector 2 months ago
Search RegExp vs includes vs match 2 months ago
for vs foreach vs some vs for..of with modern var declarations

Compare loop performance

2 months ago
for vs foreach vs some vs for..of with modern variable declarations

Compare loop performance

2 months ago
ForOf vs Map 2 months ago
Lodash isEqual test v4.17.21 2 months ago

 Create Your benchmarks