Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

concat vs spread by rulasfia

Compare the new ES6 spread operator with the traditional concat() method

Map iteration vs Map.values() iteration

No description provided

My 1st test

My 1st test

Dedupe Obj by prop (150 items)

No description provided

Object.create(null) vs {} vs Map() key access (heavy)

Testing access to the own properties of a big Object / Map. true / false - 50% / 50% . Caution! Heavy test.

moment vs date-fns parsing

It's not a deep validation; I'm just comparing ONE function that those two libraries have in common.

map() vs for...loop using Moore's 3

No description provided

Array.prototype.slice vs For i loop

No description provided

Deep copy comparison with structuredClone

Benchmarks for StackOverflow question on deep copy techniques https://stackoverflow.com/questions/7486085/copy-array-by-value/23536726#23536726

replaceAll native 2023 vs regex replace

No description provided

Lodash Union vs Spread (100000)

No description provided

Dompurify vs fn that returns string

No description provided

Last char in a string: char index vs charAt() vs slice() vs at()

Compare methods for testing string's beggining character.

Timezone format: Intl.DateTimeFormat vs. Moment.js vs. Luxon

No description provided

Add Zeroes

No description provided

Compare Or vs Includes

No description provided

Array fill method vs for loop test

Array fill method vs for loop performance validation

set.has vs. array.includes for single element 2

No description provided

parseInt-vs-math.floor2agasdsgsa

Check the impact between the two

test + replace vs replace all

No description provided

set.has vs. array.includes (100000)

No description provided

str.split vs spread

No description provided

matches vs. hasClass vs. classList

No description provided

Array.from vs Spread multiple count sizes

No description provided

Delete vs undefined vs spread

No description provided