Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Ramda vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

IndexOf vs regex

Using indexOf instead of regex to find a sub string

Lodash isEqual and then group vs only grouping messages

Tests

querySelector vs getElementsByClassName

No description provided

lodash.each vs Object.forEach

No description provided

Check date comparison

No description provided

Lodash sort vs array.prototype.sort

No description provided

jQuery by className vs Document.getElementsByClassName

Comparing speed of getting element by class name with jQuery vs Vanilla JS

jQuery by className vs Document.getElementsByClassName

Comparing speed of getting element by class name with jQuery vs Vanilla JS

for vs foreach vs some

Compare loop performance

jQuery CSS3 :not vs .not()

Using jQuery 3.3.1, compare speed of CSS3 pseudo-class :not versus .not() method.

date formatter libraries

No description provided

Spread vs Slice

Cast a classList to an array with Array.prototype.slice.apply() or the babel transpile of [...classList]

spread vs concat 2

No description provided

Lodash Uniq vs Javascript Set

No description provided

Lodash vs Ramda

No description provided

document.querySelectorAll (from document) vs parent.querySelectorAll (from an element)

Comparing speed of that on a large sample HTML document.

document.querySelector (from document) vs parent.querySelector (from an element)

Comparing speed of that on a large sample HTML document.

document.getElementsByClassName (from document) vs parent.getElementsByClassName (from an element)

Comparing speed of that on a large sample HTML document.

document.getElementById vs GetChildElementById

Comparing speed of getting element by id with two different methods.

document.getElementById vs GetChildElementById

Comparing speed of getting element by id with two different methods.

document.getElementById vs GetChildElementById

Comparing speed of getting element by id with two different methods.

Array.prototype.concat vs spread operator

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

Destructuring assignment vs lodash

Destructuring assignment vs lodash performance measure

Ramda vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.