Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

JSON Querying Comparisons

No description provided

JavaScript spread operator vs Object.assign performance (same specs)

No description provided

desctruct vs property assign for 1000 items

((acc, key) => ({ ...acc, [key]: value}) vs { acc[key] = value; return acc }

For, While

No description provided

Reduce vs FlatMap (500 x 20)

Speed comparison between Array.prototype.reduce using array destructuring vs Array.prototype.flatMap, for a 500 by 20 two-dimensional array, simulating 20 pages each with 500 items

Reduce vs FlatMap (500 x 500)

Speed comparison between Array.prototype.reduce using array destructuring vs Array.prototype.flatMap, for a 500 by 500 two-dimensional array, simulating 500 pages each with 500 items

Reduce vs FlatMap (500 x 100)

Speed comparison between Array.prototype.reduce using array destructuring vs Array.prototype.flatMap, for a 500 by 100 two-dimensional array, simulating 100 pages each with 500 items

Reduce vs Flat (500 x 500)

Speed comparison between Array.prototype.reduce using array destructuring vs Array.prototype.flat, for a 500 by 100 two-dimensional array, simulating 500 pages each with 500 items

Reduce vs Flat (500 x 100)

Speed comparison between Array.prototype.reduce using array destructuring vs Array.prototype.flat, for a 500 by 100 two-dimensional array, simulating 100 pages each with 500 items

stripped down reduce vs map + join

No description provided

Regex vs indexOf vs Set

Testing some things

Object.prototype.toString.call vs typeof (only isObject, full implementation)

No description provided

Object.prototype.toString.call vs typeof (only isObject)

No description provided

desctruct vs property assign

((acc, key) => ({ ...acc, [key]: value}) vs { acc[key] = value; return acc }

Array.filter vs for/of

No description provided

lodash join vs native join

No description provided

offsetwidth/getBoundingClientRect

No description provided

offsetwidth vs getBoundingClientRect

Comparing performance of: offsetwidth vs getBoundingClientRect

Ternary or coercion

No description provided

!!a && b or a && b

No description provided

r vs j

No description provided

Map vs Object huge

Lookup of map vs object

Map vs Object large

Lookup of map vs object

IndexOf Array vs String

No description provided

Implicit vs parseInt vs Number string to num

No description provided