Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Set for entries vs forEach

Benchmark the performance diff between sets forEach and for loop over set.entries

variables declare outside or inside loop

No description provided

bigArray uniq vs set vs reduce few duplicate

No description provided

date format: php date(locutus.io) vs dayjs vs monent.js vs luxon vs date-fns/format

php date by locutus.io dayjs 1.11.7 (jsdelivr) moment 2.29.4 (jsdelivr) luxon 3.3.0 (jsdelivr) date-fns 2.29.3 (rollup)

Spread whole array vs push [JS]

No description provided

Performance of JavaScript .forEach, for in v3

No description provided

jQuery vs getElementById vs querySelector vs $(getElementById) jquery 3.6.3

Comparing speed of getting element by id with jQuery vs Vanilla JS with getElementById and querySelector

jQuery vs getElementById vs querySelector jquery 3.6.3

Comparing speed of getting element by id with jQuery vs Vanilla JS with getElementById and querySelector

Logical vs Ternary perf (javascript)

Testing the performance of logical assignment vs ternary assignment

Lodash CloneDeep vs Immer Produce with heavy load, slightly less useless

No description provided

array vs int32array vs map fixed

No description provided

Uint8Array vs Uint8ClampedArray

No description provided

if vs callback vs currying condition comparison ver_2: static handle

No description provided

scrollTop vs scrollTo vs scrollBy vs scroll

No description provided

structuredClone vs spread vs Object.assign + more

Note!: none of these tests actually do the same thing, and the data in the example is simple. consider also using arrays: those are nice. Some of these are shallow, some of these are deep-ish. Data is lost through JSON serialization and back, and more data would be lost in JSON and other methods depending on the data stored.

Array concat vs spread operator vs push (via for loop)

Compare the new ES6 spread operator with the traditional concat() method and push

manual replace vs regex replace

No description provided

insertAdjacentHtml vs innerHTML (multiple)

insertAdjacentHtml vs innerHTML

filtering array with push vs reduce

No description provided

luxon vs datefns vs moment vs day.js

No description provided

String vs. Template Literal

No description provided

findIndex vs indexOf vs includes - JavaScript performance

No description provided

Rxjs several pipes vs one 100k without functional array functions at all 1253tzsd

No description provided

Array.prototype.slice vs spread operator vs Arra.from

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

Rxjs several pipes vs one 100k without functional array functions at all

No description provided

NEW BENCHMARK Your Benchmarks