Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

PutImageData vs DrawImage vs fillRect

GetImageData with PutImageData vs just DrawImage

for vs for in vs for of vs forEach (no length)

Put array length outside of the loop

char index vs charAt() vs slice() vs substr()

Compare methods for testing string's beggining character.

Fast deep equal

No description provided

js private field

No description provided

js find vs lodash find

No description provided

Math.max vs ternary

No description provided

Rest parameters vs array parameter

No description provided

JS find vs indexOf 2

JS find vs indexOf

lodash uniq vs set vs uniqSort

No description provided

remove lastChild vs replaceWith

No description provided

classnames vs classcat 2

No description provided

addEventListener('resize') + innerWidth VS matchMedia() + matchMedia.addEventListener('change')

This benchmark compares using `addEventListener('resize')` with window.innerWidth versus window.matchMedia with it's`addEventListener()` function to see which is faster.

Spread vs Push -

No description provided

noop vs conditional execution

Is it faster to run a noop (no-op, no op) function in javascript or is it faster to check if a function exist before calling it? let's find out!

Map() delete while iterating vs clear

When iterating over a Map and clearing after iteration is required, is it faster to remove items at each iteration step or is it faster to iterate and then clear() the entire Map afterwards?

padStart vs splice vs conditional

Measures speed between using padStart and splice and conditional

Concat vs Spread for Large Arrayss

No description provided

Lodash omit vs Native Delete for multiple key removal

No description provided

Switch vs Object Literal vs If Else vs Map - testing with simpler data

No description provided

Buffer Access 2

No description provided

Deep copy comparison

Benchmarks for StackOverflow question on deep copy techniques https://stackoverflow.com/questions/7486085/copy-array-by-value/23536726#23536726

jQuery.extend vs JSON.stringify(JSON.parse())

No description provided

date parsing test

No description provided

PHP - generator vs array

No description provided

NEW BENCHMARK Your Benchmarks