Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

replaceAll vs regex with g flag

No description provided

redcue vs flatMap

No description provided

str.match vs str.split vs deconstruction

Test String.match with regex against String.split with string and string deconstruction. We are splitting a string at the spaces.

Javascript string.endsWith vs string.slice and tripple equal (one char)

No description provided

Large JSON comparsion

No description provided

replace vs substring2w22

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...

flatMap vs reduce vs loop filtering performance vs filter

https://stackoverflow.com/a/77247681

lodash.intersection vs Vanilla JS

No description provided

queryall vs classname

No description provided

querySelector vs querySelectorAll vs getElementsByClassName vs querySelector (ID) vs getElementsByID 20x

No description provided

regex v split parsez

No description provided

regex v split parse

No description provided

regex v split

No description provided

instanceof vs number

No description provided

Transform: Object.fromEntries vs reduce (100 entries)

No description provided

Transform: Object.fromEntries vs reduce (10000 entries)

No description provided

Transform: Object.fromEntries vs reduce (small dataset)

No description provided

Transform: Object.fromEntries vs reduce (large dataset)

No description provided

Loop into two arrays with products

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

Loop into two arrays

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

xxx vs xxx2

No description provided

flatMap vs reduce with desctructuring vs reduce without desctructuring

No description provided

Object.fromEntries vs reduce (large dataset)

No description provided

Object.fromEntries vs reduce (small dataset)

No description provided

Shuffled Array Cache Test 4

No description provided