Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

DOM get attributes of children vs JS Array READ performance v2

Results: Reading the DOM with nextElementSibling + getAttribute is less than 5% slower than an JS array list. textContent is slightly faster than a JS array list, and nodeValue is 3X faster.

Moment vs Clone

No description provided

childNodes vs children vs firstChild/nextSibling vs firstElementChild/nextElementSibling

Fastest way to list children

Find Smallest Number Not In An Array

No description provided

RFDC vs. Object Assign

Even though this isn't a fair comparison since we're not talking deep cloning, this is a benchmark to see if RFDC can be used in any case, deep cloning or not.

null vs undefined iiffe

No description provided

console.log test

No description provided

accessing null vs undefined

measurethat.net is weird

Array.push vs Spread operator

No description provided

Regexp test for safari

Regexp test for safari

slice vs regex

foo

Dompurify 2.3.3 vs sanitize-html

No description provided

uniq indexOf vs lodash uniq

No description provided

Lodash 4.17.21 sumBy vs reduce

No description provided

Compare Nulling, undefining and deleting of Javascript Object vs Map

Im preparing the Object in every test as i only want to measure the actual changes

delete vs null vs undefined vs void 0 vs Object.create(null) propertie

delete vs null vs undefined vs void 0 vs Object.create(null)

DOMParser vs createContextualFragment vs innerHTML vs insertAdjacentHTML vs createContextualFragment Polyfill 2 Large HTML

Compare DOMParser with createContextualFragment and innerHTML in a single test.

fill/stroke Path2D vs repeated path drawing calls

No description provided

copy ArrayBuffer: DataView vs Uint8Array.set vs Float64Array.set vs by bytes v2

No description provided

Find: Native vs Underscore 1.13 vs Lodash 4.17

updated versions

Encode vs Blob

No description provided

HTMLImageElement vs HTMLCanvasElement vs ImageBitmap

CanvasRenderingContext2d::drawImage with HTMLImageElement vs HTMLCanvasElement vs ImageBitmap

Create Array Filled with Undefined

No description provided

Set vs Map vs Object for lookups

No description provided

Array.prototype.slice vs spread operator vs map

Compare the new ES6 spread operator with the traditional slice() method and map() method

NEW BENCHMARK Your Benchmarks