Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

test task

No description provided

for vs for callback

No description provided

Benchmark: flatMap vs reduce vs while vs foreach vs for of

No description provided

i++ vs ++i vs i += 1

No description provided

i++ vs ++i

No description provided

.getElementsByClassName() vs. .querySelectorAll()

Show the performance impact of a live node list (.getElementsByClassName()) vs. a static node list (.querySelectorAll()).

IndexOf vs Includes vs lodash includes2

Banana

asdjf ladjfasd fjaldsf

No description provided

test-974

No description provided

Array push vs concat

No description provided

Lodash get vs optional chaining

No description provided

indexOf() === 0 vs lastindexof( ,0) === 0 vs startsWith() vs idx

No description provided

index === 0 vs lastindexof( ,0) === 0

No description provided

mustache vs handlebars rendering performance

nya nya nya

Split join vs replace2

No description provided

Testing jQuery Perfomance

test

Array.isArray vs _.isArray

No description provided

objType vs objTypeS vs objTypeL vs others

Symbol.iterator also matches TypedArray, Map, and such

instanceof vs .prototype.isPrototypeOf vs Object.prototype.toString.call vs typeof vs isArray vs Symbol.iterator

Symbol.iterator also matches TypedArray, Map, and such

JS native vs Ramda vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

Ramda (/w transducer no pluck) vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

Array.prototype.filter vs indexOf

No description provided

Ramda (/w transducer) vs. Lodash

Compares performance on the same task using Lodash vs two styles of Ramda vs two styles of "native" Javascript. In all cases the task is pulling "counter" property from each item in an array, filtering out odd items, squaring them, then returning those squared values that have less than two digits.

Lodash filter vs splice removing item from array

No description provided

Array.prototype.filter vs Lodash filter removing item from array

No description provided