Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.includes() vs. manual compare

No description provided

trim vs replace

No description provided

slice VS splice VS shift for removing multiple items

No description provided

Add item at index

Compare Slice vs Splice

Find object in array

No description provided

Which equals operator (== vs ===) is faster? check for null

Is there a performance benefit to replacing == with ===?

for-in vs object.keys length

No description provided

for vs foreach vs some vs for..of (x10000)

Compare loop performance

slice vs destruction with inserts

No description provided

DocumentFragment vs (multiple) append

No description provided

deepmerge vs Object.assign

No description provided

Lodash.isEqual vs JSON.stringify: Deep

No description provided

Object iteration vs Map iteration

No description provided

flatMap() vs filter().map() vs reduce() v2

flatMap vs filter map vs reduce()

jQuery AJAX vs Fetch API

Benchmark jQuery AJAX wrapper vs Fetch API that shows the power of Vanilla JS Checked test: jQuery x 20,305 ops/sec ±5.52% (61 runs sampled) => 50ms execution time Checked test: Vanilla JS x 26,853 ops/sec ±6.86% (56 runs sampled) => 38ms execution time

Ramda vs. Lodash equality 2

Compares performance on the same task using Lodash vs Ramda vs Fastest Clone.

Array.prototype.concat vs push apply vs spread operator

Compare the new ES6 spread operator with the concat and apply method

JavaScript spread operator vs Object.assign performance vs a custom merge object method

No description provided

Modern dataset vs old .getAttribute() vs jQuery .data() vs jQuery .attr() rfgonzalezweb

No description provided

Lodash cloneDeep VS spread operator with edit

No description provided

cloneDeep vs spread object vs json

No description provided

reduce vs map+reduce

No description provided

sync vs promise

No description provided

slice v splice chunking

100k list splice and shift win, they mutate list slice loose, it creates a copy of list 7.5x slower

Filter vs InLoop

No description provided