Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array timing 100

No description provided

Array timing

No description provided

innerHTML vs innerText vs textContent (full)

blah blah

Test object emptyness (for .. in vs Object.keys vs Object.values vs lodash.isEmpty vs jquery.isEmptyObject)

Tests performance of different techniques and libraries individually and with varying data to observe possible variations.

shortid

No description provided

Reduce vs Map + FromEntries vs for loop vs map

Original benchmark was unfairly forcing the for loop to be slower through variable declaration and destructuring.

Reduce vs Map vs FromEntries vs for loop

Original benchmark was unfairly forcing the for loop to be slower through variable declaration and destructuring.

cmp map vs index

No description provided

classix vs custom

No description provided

removeEventListener vs AbortController vs shared AbortController

No description provided

removeEventListener vs AbortController

No description provided

[0] vs first vs at 0

No description provided

length -1 vs last vs at -1

No description provided

Tuple versus Object 2

Shows a fully defined plain object is fastest. Surprisingly, even beat Array & Tuple. Expando = object with properties added after creation. Literal = all properties defined at creation. Array = additional elements are pushed after creation (~Expando). Tuple = all elements defined at creation, ie: size is constant. Indexed object = an object who's keys are numbers. The expectation is this will be slowest as indexing into objects causes number toString() conversion.

CSS variables VS Set property fixed

No description provided

createElementNS vs cloneNode

Faster way to create new dom elements before insertion

lodash uniq vs set + Array.from

No description provided

external vs member vs static funcs

Compares funcs

Performance.now() impact

No description provided

Lodash.isEqual vs JSON.stringify Equality Comparison for More Complicated Arrays of 1 object each

Test on isEqual performance

Lodash.isEqual vs JSON.stringify Equality Comparison for More Complicated Arrays

Test on isEqual performance

Object array of arrays for vs foreach vs for..in vs for..of

Compare loop performance

Object array and property for vs foreach vs for..in vs for..of

Compare loop performance

Object array for vs foreach vs for..in vs for..of

Compare loop performance

array.includes vs set.has on 100 elements

100 elements and each element check once