Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Object.assign vs spread -- No jQuery

No description provided

a*a...*a vs a***x vs Math.pow(a,x)

No description provided

a*a vs a**2

No description provided

jQuery by id vs Document.getElementById vs Document.querySelector (fix)

Comparing speed of getting element by id with jQuery vs Vanilla JS (fix)

jQuery by id vs Document.getElementById vs Document.querySelector ($ fix)

Comparing speed of getting element by id with jQuery vs Vanilla JS ($ fix)

Iterate over object

Various cases to iterate over given object

assign vs _.clone vs native clone vs JSON vs Recursive

No description provided

nested if else vs ternary

No description provided

if vs ternary

No description provided

2-tier vs 3-tier Object.assign vs 3-tier spread vs 3-tier constructor

This demonstrates the difference in performance between 2-tier architectures, which simply return database objects through controllers from the repositories vs 3-tier architectures which run some sort of service layer mapping to obfuscate unnecessary db information from both the controller layer and, subsequently, the front-end. Such mapping logic will ideally use Object.assign, the spread operator, or perhaps an explicit constructor mapping.

JS cloning benchmark

No description provided

assignment

ba

Deep Clone Performance - JSON vs Lodash vs Ramda vs Native

No description provided

createTextNode vs textContent vs innerText vs innerHTML

No description provided

Lodash each vs native Object.keys.forEach

No description provided

concat vs [...spread]

No description provided

delete vs omit

No description provided

querySelectorAll - vs - getElementsByClassName

No description provided

Moz lodash map vs es6 map

No description provided

Object Deep Copy Test3

Produce a deep copy of a Javascript object where nested objects are not simply references to the originals.

> vs ==

No description provided

Which operator (== vs >) is faster?

Is there a performance benefit to replacing == with >?

Map (Native vs Ramda vs Lodash vs Immutable) - sample size 100

measures the speed of ramda's map vs Array's native map vs lodash map vs Immutable map

Array.prototype.map vs Ramda.map

No description provided

Array.prototype.map vs. Ramda.map

No description provided