Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash difference vs ES6 Set

No description provided

RFDC clone vs Lodash cloneDeep vs JSON Clone vs structuredClone

No description provided

JavaScript Array Slice vs Filter

No description provided

Lodash DifferenceWith vs Native (foo)

No description provided

luxon 3.2.1 vs datefns vs moment vs dayjs (formatting)

Updated luxon

bignumber.js vs. big.js vs. decimal.js (I) V20

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

Try/catch performance w/o finally block (JSON parse)

No description provided

Arrow function vs bind function creation

No description provided

getComputedStyle vs clientWidth

if one time get style. Better element.clientWidth if two - no difference if three ore more, Better getComputedStyle(element)

DataAttribute vs Class Selector vs ID Selector vs Custom Attributes

No description provided

classList.contains vs. Set vs regex

No description provided

hasOwn vs hasOwnProperty vs typeof

Object lookup performance

replacer string vs function 2

No description provided

replace vs substring vs slice from END

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

Object.assign vs foreach set

No description provided

JSON.stringify vs Deep Clone

No description provided

Object.fromEntries vs reduce v21

No description provided

string indexer or charAt

Is array access to a string faster than calling charAt?

set.has vs. array.includes vs array.find vs map.has

No description provided

Nullish coalescing V.S. if/else (native)

No description provided

divide by 2 vs multiply by 0.5 - 1

No description provided

IIFE vs direct call vs no function

No description provided

isArray vs length (with alpha)

Array.isArray vs array.length > 0

Lodash findLast vs Native findLast v2

No description provided

Lodash findLast vs Native findLast

No description provided

NEW BENCHMARK Your Benchmarks