Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

fdsafdsafdsalarge string comparison

Worst case large string comparison.

Differrence vs some + includes

No description provided

sort vs toSorted vs spread-and-sort vs just-spread

No description provided

bit shift vs divide by 2

No description provided

Comparing new Date vs raw number comparison

No description provided

splittt

No description provided

splitt

No description provided

array spread operator vs concat vs push fix

a.push(...b); // bug, not works!

array spread operator vs concat fix

No description provided

spread operator vs array.concat()

No description provided

&& vs optional chaining vs nothing

How to better null-check

.createElement() vs .createHTMLDocument() vs DOMParser() vs .appendChild()

Test performance between using document.createElement(), document.createHTMLDocument(), DOMParser(), and building up a DOM tree with .appendChild()

C vs F

No description provided

pop() vs shift() vs unshift vs pop vs index

No description provided

Performance of JavaScript .forEach, .map and .reduce vs for and for..of2

No description provided

empty test

No description provided

escape and escapeAttr and escapeLoop 2

No description provided

escape and escapeAttr

No description provided

Closing tags

Banana

IndexOf vs substring 23

Banana

IndexOf vs substring 2

Banana

localcompare string number vs compare string as number

No description provided

mergeDeepRight vs _.cloneDeep vs structuredClone vs spread

No description provided

Loop vs Stringify Array Comparison

No description provided

Object.is

Object.is vs ===