Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

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

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)

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

No description provided

StrangeBee Markdown Performance Comparison

A performance comparison of leading Javascript Markdown implementations.

createTextNode vs textContent vs innerText vs append vs innerHTML vs insertAdjacentHTMLvs replaceChildren vs appendChild

No description provided

createTextNode vs textContent vs innerText vs append vs innerHTML vs insertAdjacentHTML vs nodeValue vs replaceChildren vs appendChild

No description provided

replace an array in JavaScript - splice vs push vs for

Based on question on http://stackoverflow.com/questions/1232040/how-do-i-empty-an-array-in-javascript

bignumber.js vs. big.js vs break_infinity.js

Comparing performance of: Native vs Native + toFixed vs big.js vs bignumber.js vs break_infinity.js

Array from vs string split (modified with long strings)

No description provided

RFDC clone (circles: true) vs Lodash cloneDeep (+ cycle)

No description provided

Dayjs Date-fns format comparison 6

No description provided

Dayjs Date-fns format comparison 5

No description provided

Dayjs Date-fns format comparison 4

No description provided

Dayjs Date-fns format comparison 2

No description provided

Destructuring vs property access

No description provided

reduce.concat() vs flat() vs spread concat()

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

Object.hasOwn Set.prototype.has Object.prototype.hasOwnProperty in

No description provided

Set.prototype.has vs Object.hasOwn

No description provided

Sqrt vs Alpha max plus beta min algorithm

No description provided

Map has vs Object hasOwnProperty

Comparing performance of: Map lookup vs Obj lookup

array[array.length - 1] vs array.at(-1) 3

No description provided

function vs class vs proto

No description provided

javascript foreach vs javascript each vs jquery javascript for

No description provided

Object.fromEntries vs reduce vs for loop

No description provided

NEW BENCHMARK Your Benchmarks