Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JavaScript spread operator vs Object.assign performance 0109

No description provided

Boolean constructor vs double negotiation trick in javascript ewsd

No description provided

Assignment of value vs Destructuring an object 2

No description provided

array shift - array slice

No description provided

Object.setPrototypeOf vs Object literal

No description provided

Object.create vs Object literal

No description provided

isArray vs instanceof vs typeof

No description provided

instanceof Array vs Array.isArray

No description provided

index vs lastindexof (for right biased values)

Test if lastIndexOf actually performs better when the search term is expected to be near the end.

index vs lastindexofasdf

asdf

regex replace with and without for (very long text)

No description provided

regex replace with and without for (long text)

No description provided

Search an option inside a dataList v2

Different methods to check if an option is inside a dataList

Custom tag 2

No description provided

Create Castom tag

No description provided

reduce() vs filter().map() V3

reduce vs filter map

reduce() vs filter().map() V2

reduce vs filter map

findIndex vs _sortedIndexBy vs custom sortedIndexBy

No description provided

Object.fromEntries vs reduce without toString2

No description provided

replace vs split and join

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

Javascript slice vs substring

No description provided

Array concat vs push spread vs push apply

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

querySelector vs getElementsByTagName

No description provided

native find() vs lodash _.find() vs native some()

No description provided

array find vs array some

No description provided