Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Lodash's uniq vs new Set

No description provided

math.max.apply vs math.max(...)

No description provided

[].call.slice() vs .slice()

No description provided

parseInt vs Number // toString vs String

No description provided

ParentNode.append() vs Node.appendChild() for adding a couple elements

ParentNode.append() is more convenient. Is it also faster when needing to append several elements at once? https://developer.mozilla.org/en-US/docs/Web/API/Element/append https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild

Map.get vs Object[i] vs Map.has

No description provided

setAttribute vs type

No description provided

createTextNode vs textContent vs innerText vs append

No description provided

new Set([x]).has vs [x].includes

No description provided

Object Length vs Lodash Size

No description provided

QuerySelector vs QuerySelectorAll + forEach for 1 element

No description provided

str split vs regex replace

No description provided

for of vs for vs foreach

No description provided

indexOf vs split - test

testing speed

RPC eval vs JSON parse.

Compare function invocation using eval or JSON parse.

conditionally insert properties w/ terinary

https://www.reddit.com/r/javascript/comments/mrzrty/the_shortest_way_to_conditionally_insert/

conditionally insert properties

https://www.reddit.com/r/javascript/comments/mrzrty/the_shortest_way_to_conditionally_insert/

Intl.Collator.compare() vs localeCompare()

No description provided

getElementById vs querySelector(css) vs getElementsByClassName vs getElementsByName

Test performance of different ways of get just one particular DOM element

Intl.NumberFormat vs toLocalString vs string split & reduce (with fraction digits) vs toFixed

No description provided

filter vs foreach vs for

No description provided

lodash vs es6 in join method

No description provided

UUID methods

No description provided

Lodash cloneDeep VS spread operator VS Lodash clone

No description provided

Lodash cloneDeep VS spread operator list

No description provided

NEW BENCHMARK Your Benchmarks