Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

String.indexOf > -1 vs String.includes

No description provided

Parse attributes of DOM element

No description provided

Lodash cloneDeep vs structuredClone vs naive JSON.stringify

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

lodash chain vs ramdajs pipe

check this out

RegEx.test vs. String.includes vs. String.match vs String.search

No description provided

eval vs json parse - complex object

No description provided

Regex Checking whitespace vs trim

testing removing beginning and end whitespace vs trim

offsetWidth vs. getBoundingClientRect().width

No description provided

Replace text content on DOM element 2

No description provided

Lodash vs Native v3,0,0

No description provided

Moment Dayjs Date-fns format benchmark 2

No description provided

Remove all children from DOM element 2

No description provided

Plain object check: Object.prototype.toString vs Object.getPrototypeOf

No description provided

for-in vs object.keys [2]

No description provided

Check URL protocol and domain new URL, includes, endWith vs Regex

No description provided

replace vs. slice

Cut first char from string.

pop() vs splice()

No description provided

Object.hasOwn vs 'in' performance v2

comparing Object.hasOwn(obj, "foo") with "foo" in obj

symmetric difference of sets

Various ways of getting A  Δ B = (A\B) ∪ (B\A) = (A ∪ B) \ (A ∩ B)

Chimic

No description provided

string.replace vs regexp.matchAll vs regexp.exec

No description provided

Strict equality performance (operands of different types)

No description provided

Consume Object.entries vs for..in vs for..in fn 222222

No description provided

_.has vs hasOwnProperty.bind vs hasOwnProperty.call

No description provided

Lodash has vs hasOwnProperty.bind

No description provided