Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

string vs number vs symbol 2

No description provided

Array.prototype.reduce() vs for loop sum

Which is more efficient, reduce or a foor loop?

slice vs substring (long string)

Compares slice and substring to each other when operating on a long string

Dompurify, Sanitize

No description provided

Length vs Lodash Size 100k

No description provided

contains vs closest 2

No description provided

Array.find vs. Map.get (small scale)

No description provided

moment(string) vs moment(new Date(string)) vs new Date(string)

No description provided

Moment.js string vs Date in constructor

No description provided

toLocaleString vs regex

No description provided

concat vs Destructuring

No description provided

_.pickBy vs native vs ES6 Filter

No description provided

Math.pow(x,0.5) vs Math.sqrt(x) 12

No description provided

array.entries() vs for loop 2

No description provided

Deep clone performance comparison

No description provided

Ramda vs. Lodash vs. Sanctuary

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript vs Sanctuary. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

Array From vs Array slice vs [].slice vs spread

No description provided

Array diff

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

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

No description provided

Array fill method vs for loop test

Array fill method vs for loop performance validation

str.split vs spread

No description provided

matches vs. hasClass vs. classList

No description provided

Delete vs undefined vs spread

No description provided

slice vs substr vs substrings

Compares slice, substr and substring to each other when there is only a start index

NEW BENCHMARK Your Benchmarks