Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array vs Uint32Array (TypedArray) (part 2)

array.reverse(), array.toSorted(), array.sort(), array[i]

64k bytes of crypto.getRandomValues vs Math.Random (part 2)

Fair comparison using Crypto in batch mode. All tests run on TypedArray. All tests are inline without function call overhead. All tests use implicit type conversion without calling Math.floor()

reduce.concat() vs flat() copy

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

strict equality, Number.isNan vs. isNan

No description provided

indexOf vs startsWith vs includes

Comparing the string methods: indexOf, startsWith, includes

DataView vs Uint32Array by bytes 2

No description provided

Teste validação aqui 2

No description provided

Teste validação aqui

No description provided

Teste de validação

No description provided

Moment Dayjs comparison

No description provided

for const comparison

No description provided

const in a for loop

No description provided

vanilla test

No description provided

For vs for of redux

No description provided

StructuredClone vs JSON parse

No description provided

endsWith vs Regex2

No description provided

compare filter with lodash methods

compare filter with lodash methods

Fastest way to check if object is empty 2

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

includes vs ||

No description provided

['a', 'b'].includes vs 'a' === x || 'b' === x fix

No description provided

dayjs vs luxon (manipulating)

No description provided

['a', 'b'].includes vs 'a' === x || 'b' === x

No description provided

if [].includes vs if 'a' === x || 'b' === x

No description provided

Date vs Moment get timestamp

No description provided

Array concat vs spread operator vs push with two arrays, first one is big

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