Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

loops testing 222222

Compare loop performance

Constructed/Evaluated Function Test

You can create functions on the fly in Javascript through the new Function constructor (as an alternative to eval()). Are there any performance issues with that? Find out!

Reduce vs Assign

No description provided

Javascript Sorting Algorithms (weird sort)

Port from jsperf(https://jsperf.com/sorting-algorithms/58)

closure vs classes js

No description provided

Some vs. Filter vs. findIndex with object

No description provided

bench hubble .startsWith() vs .test() vs .match() vs .indexOf()

No description provided

Comparision filter in js using different methods_v2

No description provided

Testing filter vs foreach

No description provided

firstChild vs lastChild

No description provided

Pop vs length -1

No description provided

Object.keys VS JSON.stringify() for empty objects and arrays

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

Array.find vs Array.filter on large dataset

No description provided

JavaScript nested namespace vs simple namespace

No description provided

guard asdf

No description provided

Object.entries VS Object.keys VS Object.keys with extra array VS Object.entries without arraya s.d..

No description provided

Swap element "in-place" with replaceWith() vs .outerHTML

Swap an DOM element with replaceWith() and compare with the .outerHTML method of replacing its content instead. replaceWith() - Pretty one-liner - Breaks element attributes, inline style and scrollHeight/scrollWidth (fully re-render element) .outerHTML - Keeps attributes, inline style and scrollHeight/scrollWidth (partially re-render element) - Breaks previous element references, "hacky" looking and sometimes perceptible (element may flash for a split second)

loops testing

Compare loop performance

insertAdjacentHTML + querySelector vs append

No description provided

JavaScript spread operator vs Object.assign performance without mutating

No description provided

Lodash.isEqual vs JSON.stringify Equality Comparison for 1000 length array

No description provided

JSON.stringify + JSON.parse vs structuredClone vs fast_deep_clone (recursive)

No description provided

unique elements in array using filter fork2

No description provided

unique elements in array using filter fork

No description provided

Object.fromEntries vs reduce v4

No description provided