Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Lodash Union vs Spread

No description provided

indexOf vs Map object

No description provided

for (i < n) vs forEach vs for...of

No description provided

Array.prototype.filter vs Lodash filter vs L

No description provided

Ramda vs json stringify

No description provided

classList.contains() vs closest() performance

imitating click

for-in vs object.keys (2)

No description provided

mathjs random vs Math.random

No description provided

string vs number vs symbol

No description provided

String() vs .toString() vs Concatenation vs Template string

No description provided

Iteration Speed 2

No description provided

Some vs Find 100k items

No description provided

Array loop vs foreach (static & index)

No description provided

Different ways (template importNode, vanilla js, innerHTML) to create DOM node

No description provided

Fastest way to list children: childNodes vs children vs firstChild/nextSibling vs firstElementChild/nextElementSibling v2

Result: firstElementChild is the fastest yielding 3-4X performance. With lastElementChild close 2nd. Other observations: doing for loop i-- with children shows ~150% higher performance vs i++. And unloading it into a variable prior yields another ~200% boost

foreach vs map by wayne

No description provided

Direct Array vs Typed Array vs Array read performances

No description provided

Remove by splice vs copyWithin vs filter (numeric array)

Deletion of an element from an array.

_.isEqual vs dequal vs JSON.stringify

Test on _.isEqual vs dequal vs JSON.stringify performance

Object.keys().length vs for i in object i++ vs Object.entries().length vs Object.values().length

No description provided

for ++i < length vs .forEach(t) vs for..of vs for t = entries[++i] vs for i = 0; ++i in entries vs for ++i in object vs .reduce (entries)

Compare loop performance

Alphanumeric String

Check if a string only contains alpha-numeric characters.

Alphanumeric

The best approach to check if a string is alphanumeric (JavaScript)

Compare null undefined speed

No description provided

Vanilla JS VS JQuery DOM perfomance + getbyid(elId)

Vanilla JS VS JQuery DOM perfomance

NEW BENCHMARK Your Benchmarks