Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

cloneDeep vs structuredClone (Lottie JSON file)

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

fromEvent vs addEventListener?

fromEvent vs addEventListener

parseFloat vs slice on unit numbers

No description provided

Performance when setting innerHTML vs innerText vs textContent

No description provided

Markdown Performance Comparison 2026

A performance comparison of marked 17 vs markdown-it 14

Math.max + Math.min and reduce

No description provided

decimal.js vs. bignumber.js

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

medium set vs binary search

No description provided

querySelector vs cache speed test

No description provided

Array fill method vs for loop test (with map)

Array fill method vs for loop performance validation

document.querySelector speed test

No description provided

闭包变量创建方式 iife vs function call

No description provided

large list of strings: spread operator vs Array.from + push vs slice + push vs flat

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

spread operator vs Array.from + push vs slice + push vs flat

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

spread operator vs Array.from + push vs slice + push

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

Array slice() vs. spread operator

Comparing ES6 spread operator with the slice() method

Direct call vs bind vs closure 2

No description provided

Direct call vs bind vs closure

No description provided

for-in vs object.keys (for)

No description provided

Cache toLowerCase() for string compare

No description provided

Object cloning benchmark

JSOn.stringify vs structuredClone

For in vs object values 2

No description provided

For in vs object values

No description provided

Lodash template vs replace

No description provided

String compare case insensitive: Regex.test() Vs toLowerCase() Vs localeCompare()

No description provided