Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

new Set from Map<number, number[]> - for..of vs Array.from(...).flat();

Comparing set creation from nested arrays using

Spread vs forEach objects

No description provided

Direct access vs Class accessors vs Object.defineProperty

No description provided

Offscreen canvas vs cached Path2D vs no cache

No description provided

Offscreen canvas vs Cached Path2D

No description provided

Map.get vs Object property access2

No description provided

bind vs arrow (test2)

No description provided

bind vs arrow (test1)

No description provided

chain of two or equals vs includes

how much of a performance deficit you can expect from using Array.includes instead of manually writing a chain of logical ORs

JavaScript spread operator vs Object.assign vs for-in loop safe performance (lots of properties)

Measure the fastest way to merge objects, without mutation.

Javascript string.endsWith vs string.slice and triple equal checking vs hardcoded index and triple equal, comparing a single character

No description provided

Javascript string.endsWith vs string.slice and tripple equal checking single character

No description provided

Boolean vs >

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M)20

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M)9

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 7

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 6

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 5

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 4

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 3

No description provided

Intl.collator O(N*M) vs native String.prototype.includes O(N+M) 2

No description provided

findIndex vs indexOf - JavaScript performance with objects

No description provided

cpu cache test

No description provided

Javascript string to array mapping: Array.from() vs Spread syntax [...spread] vs split

No description provided

string Array.prototype.slice vs spread operator

Compare the new ES6 spread operator with the traditional slice() method