Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

map get vs array.find #2

No description provided

for...of vs find

No description provided

Check if character is not a lowercase letter

regex test vs alphabet string includes vs charCodeAt

flatMap vs reduce (concat)

No description provided

Pancake GroupedList

No description provided

Lodash uniqBy vs Set vs custom uniqBy

No description provided

Fragment js createElement 56454

No description provided

Fragment js createElement 2

No description provided

111456v54v6546

222

Encode vs Blob vs length

Checking size of string performance

elem.ownerDocument.defaultView.getComputedStyle vs window.getComputedStyle

No description provided

lodash merge vs deepmerge 4.2.2

No description provided

Array concat vs spread operator vs push with object

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

dompurify vs native vs none

No description provided

Lodash reduce vs transform vs Native reduce on object (Object without prototype)

No description provided

FindIndex + splice vs filter + includes

No description provided

pick by spread operation vs delete

No description provided

String.charAt vs String.sub

No description provided

Int32Array.sort vs Array.sort

No description provided

string concatenation vs string array

No description provided

querySelector vs querySelectorAll simple (single element result)

No description provided

Object.fromEntries x reduce (correctly using fromEntries - addtl work)

No description provided

Object.fromEntries x reduce (correctly using fromEntries)

No description provided

Math.sqrt(x) vs x**0.5

No description provided

Generate HTML and get reference to element : DOMParser + querySelectorAll vs document.createElement

We want to build HTMLElements and get reference to some of them in an object named controller. Here we say we want reference to elements with an 'id'.<br> <br> We test two different methods :<br> - Create elements from HTML string using DOMParser and use querySelectorAll to build controller<br> - Create elements from createElement method and build controller from them<br> <br> Here we also put the generated DOM in a fragment because we want to be able to append generated DOM to any element