Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

slice vs filter more than 1000

slice vs filter more than 1000

yaml 1.10.2 vs js-yaml 4.0.0

No description provided

atan2 vs acos

No description provided

acos vs atan2

No description provided

undefined vs. typeof vs. in vs. hasOwnProperty (Object.create(null))

Object lookup performance

RFDC clone vs clone-deep clone vs Lodash cloneDeep vs JSON Clone

Comparing performance of: Lodash cloneDeep vs Json clone vs RFDC copy vs clone-deep copy

Array immutable union: underscore union vs vs uniq

No description provided

is variable undefined? typeof variable === "undefined" vs variable === undefined

Comparing whether checking is (typeof variable === "undefined") is faster than (variable === undefined)

Fizz Buzz

Fizz Buzz perfocmance

Switch true vs if else

No description provided

Number & toLocaleString vs + & toLocaleString vs custom thousands seperator

No description provided

Lodash Sort vs Array.sort vs Stable Sort

No description provided

canvas2d.drawImage(imageElement) vs createImageBitmap(imageElement) (v2)

No description provided

canvas2d.drawImage(imageElement) vs createImageBitmap(imageElement)

No description provided

Lodash.isEqual vs JSON.stringify Equality Deep Comparison for Shallow Array of Strings.

Test on isEqual performance

for loop vs. lodash range foreach small size

No description provided

bignumber.js vs. big.js vs. decimal.js (I)

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

every vs for loop

No description provided

padStart vs splice

Measures speed between using padStart and splice

Lodash vs. Native (remove/filter)

No description provided

for vs for..of vs forEach

No description provided

className vs classList add and remove

No description provided

arr unshift vs push + reverse (large array)

No description provided

typeof undefined vs falsey check

which is faster

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

No description provided

NEW BENCHMARK Your Benchmarks