Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

innerText vs textContent reading

No description provided

Lodash cloneDeep vs Lodash clone vs Array.slice() vs. Object.assign() (10000 items)

For times when a shallow copy is needed for 10000 items, what is the performance difference between these 3 methods.

Array.slice() vs. Spread operator (10000 items)

For times when a shallow copy of an Array of size 10000 is needed, what is the performance difference between these 2 methods.

Array.slice() vs. Spread operator

For times when a shallow copy of an Array is needed, what is the performance difference between these 2 methods.

Option[Double]: box vs unbox fix

No description provided

Option[Double]: box vs unbox

No description provided

comparison int and string

Comparing performance of: int comparison vs string compare

Traverse function vs NodeIterator vs TreeWalker (elements)

Let's compare the speed of 3 different ways to traverse the DOM.

Traverse function vs NodeIterator vs TreeWalker (modified)

Let's compare the speed of 3 different ways to traverse the DOM.

While vs For Loop - Luigi 3

No description provided

While vs For Loop - Luigi

No description provided

Iteration Array for-of vs Map for-of 5

Iteration Array for-of vs Map for-of

Iteration Array for-of vs Map for-of 4

Iteration Array for-of vs Map for-of

Iteration Array for-of vs Map for-of 3

Iteration Array for-of vs Map for-of

Iteration Array for-of vs Map for-of

Iteration Array for-of vs Map for-of

2Sum array: for vs forEach vs for..in vs for..of vs reduce

Compare loop performance

Sum array: for vs forEach vs for..in vs for..of vs reduce

Compare loop performance

Fastest way to check if object is empty using length 3

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

Fastest way to check if object is empty using length 2

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

Fastest way to check if object is empty using length

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

for of + push vs map

No description provided

Lodash isEqual test (slightly bigger test data + custom tailored comparison function)

Test on isEqual performance

Lodash isEqual test (slightly bigger test data)

Test on isEqual performance

find vs some test123

No description provided

Array.from vs Spread from array

No description provided