Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

string literal vs array join

No description provided

scrollY vs pageYOffset

No description provided

element.getAttribute("name") vs element.attributes.name.value

No description provided

ResizeObserver vs matchMedia

No description provided

Set union

No description provided

_.fromPairs vs Object.fromEntries

No description provided

drawImage: Copy from image or canvas 2

No description provided

querySelector Class vs querySelector Attribute

No description provided

flatMap() vs filter().map()

flatMap vs filter map

Some vs. Every Includes

Check if NOT some members of an array equal a value vs. checking if all values in an array aren't equal to a value.

dataset vs setAttribute

No description provided

Remove items from array vs from objects

No description provided

Remove array element, findIndex and splice vs filter

No description provided

Lodash uniqBy vs Set with Array of object

Lodash uniqBy vs [...new Set()]

reduce vs map + fromEntries + reduce spread

No description provided

char index vs charAt() vs slice() vs startsWith() vs RegExp --

Compare methods for testing string's beggining character.

Native JS: concatenate string with + vs template literals vs String.concat vs array join

find best solution for concatenate 4 strings

Object.assign vs spreading object copy

No description provided

eval() vs new Function()

No description provided

Array item swapping, destructuring vs temp variable

Array destructuring vs temp variable use in array item swapping

Negative precision floor: Lodash vs Math.floor

No description provided

offsetTop vs getBoundingClientRect

offsetTop or getBoundingClientRect().top

js replace vs substr

Test of replace vs substr

Canvas Pixel vs Fill rect

No description provided

Canvas Pixel vs Fill rect 1px

No description provided

NEW BENCHMARK Your Benchmarks