Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.every vs JSON.stringify vs foreach

No description provided

String wrapping

No description provided

Array splice vs array assign

No description provided

Object.fromEntries vs reduce vs classic for v3

No description provided

forEach vs for len vs for in vs for of fix

created based off of an archived jsperf benchmark: http://web.archive.org/web/20191008221700/https://jsperf.com/foreach-vs-for-loop-vs-for-in-vs-for-of-vs-babel-for-of change var to let. for of returns the value directly. So you don't get value from testData array.

Object.fromEntries vs reduce vs classic for2

No description provided

Object.fromEntries vs reduce vs classic for

No description provided

array.sort vs array.toSorted

No description provided

Class method / instance method / bind this – more closer to reality test

No description provided

test stringify

No description provided

Converting array to object using Array.reduce(), Object.fromEntries(), Object.assign(), for loop, ...spread

No description provided

switch function vs switch inline vs object vs Map

No description provided

array includes vs key in object

performance comparison of ways to find if an array contains a value

Mapping a pair of numbers (2 numbers) to another number [Algorithm 1]

Comparing the performance of different implementations of 2-Tuple cache (mapping a pair of numbers to another number) when being used to achieve memoization a recursive algorithm.

Compare comparison with/without null or undefined

No description provided

json vs arraybuffer

No description provided

Converting a small Set to an Array

Return a new Array containing all elements in a Set in insertion order.

native vs native big vs 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

Looping Frozen object: Object Freeze vs Deep Freeze vs Without Object Freeze vs

No description provided

Looping Frozen object: Object Freeze vs Without Object Freeze

No description provided

func vs array

No description provided

Please ignore this benchmark

This is a just a template for my other benchmarks.

Direct call vs bind vs lambda

No description provided

directcall vs bind vs lambda

No description provided

bind vs lambda

No description provided