Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

flatMap() vs map().flat()

No description provided

Array.filter vs. Array.indexOf + splice

No description provided

Object.create(null) vs Object literal - Creation and Iteration Performance (including Object.keys vs hasOwnPropertyCheck)

No description provided

Object.create(null) vs Object literal - Creation and Iteration Performance

No description provided

Get Filtered Data Attributes

compare the retrieval of data attributes on an element filtering only certain prefixed attributes

d3 max on array from vs d3 max twice

No description provided

if-else vs switch

No description provided

jQuery hasClass vs jQuery data

No description provided

Regex vs split for Authorization Headers

Is it faster to get the meat from an Authorization header by splitting on the space? or using a regex replace and trim?

eval vs Function vs lodash.template v3

No description provided

Lodash cloneDeep vs structuredClone vs recursiveDeepCopy vs JSON clone

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

splice(indexof()) vs filter

No description provided

DocumentFragment vs insertAdjacentHTML

No description provided

JSON.parse vs fast-json-parse

No description provided

querySelector vs getElementsByClassName on multiple elements

No description provided

at vs index

No description provided

Negation vs strict undefined

No description provided

slice substring substr

No description provided

set.has vs. array.includes (with big array)

No description provided

in vs. hasOwnProperty

Object lookup performance

For Push vs Map

No description provided

Concat vs ForEach

No description provided

map iteration

No description provided

set vs array iteration

No description provided

Function vs Eval vs Getter

Compares the speed of functions, evals and Getters.

NEW BENCHMARK Your Benchmarks