Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Overhead from creating closure

No description provided

querySelector vs getElementsByTagName[0]

No description provided

firstChild vs childNodes

No description provided

eval vs json parse better

No description provided

JS typed arrays

Tests conventional canvas manipulation vs using typed arrays as discussed here: https://hacks.mozilla.org/2011/12/faster-canvas-pixel-manipulation-with-typed-arrays/

Delete vs Rest

No description provided

for-push vs for-noop vs flatMap

Comparing performance of: for-push vs for-noop vs flatMap

for-noop vs flatMap

Comparing performance of: for-noop vs flatMap

for-push vs filter

Comparing performance of: flatMap vs for-push

toFixed + parse vs toPrecision vs Math.round() vs Math.floorfast

No description provided

filter-foreach vs foreach+if

No description provided

Regex extract info vs Split

No description provided

Regex extract info

No description provided

RegEx.test vs. String.includes vs. String.match vs String.indexOf (~2000 characters)

No description provided

RegEx.test vs. String.includes vs. String.match (2000 character)

No description provided

Loadash isEmpty vs Object.keys length

No description provided

RegEx.test vs. String.includes vs. String.match vs String.match(regex) for starting string

No description provided

for of loop

for item of array v.s. for n=0;n<array.length;++n

str.match vs str.Split1

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

toggle - className vs. setAttribute vs. classList

No description provided

addEventListener('resize') with debounce + innerWidth VS matchMedia() + matchMedia.addListener()

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

Radash vs Native

No description provided

Ramda vs Native .chain

No description provided

boolean comparator

No description provided

lodash sortby vs orderby - munto

No description provided