Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Math.pow vs ** vs * version for squaring

Updated to prevent VM optimizations to remove the functions

Math.pow vs ** vs * version 2

Updated to prevent VM optimizations to remove the functions

test02

ResizeObserver vs matchMedia

ResizeObserver vs matchMedia extended

ResizeObserver vs matchMedia

StrangeBee Markdown Performance Comparison

A performance comparison of leading Javascript Markdown implementations.

filter.map vs flatmap vs reduce vs flatmap precreated array and filter always true

No description provided

my filter.map vs flatmap vs reduce

No description provided

proper sort vs 2 arrays

No description provided

sort vs 2 arrays

No description provided

toFixed vs Math.round vs |(bitwise or)

Comparing performance of:

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

array reuse

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

Object.prototype.hasOwnProperty vs obj.hasOwnProperty vs Object.hasOwn vs in

No description provided

Math.pow vs ** vs * – non-constant

No description provided

redasdfasdf

No description provided

Merge 3 small arrays

Merge 3 arrays of 10 elements

Cloning an array

Cloning a small array of 40 items

Lodash cloneDeep vs structuredClone vs JSON Parse with lots of data

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

for vs while vs for of vs forEach4

No description provided

for vs while vs for of vs forEach3

No description provided

for vs while vs for of vs forEach2

No description provided

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