Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

BranchVsReturnTrue

Benchmark of the speed difference between using multiple IF statements and an open-ended IF/ELSE IF.

innerHTML vs replaceChildren + insertAdjacentHTML

No description provided

asdasdrrrrrr

No description provided

Array.find vs. Map.get (ADELINOLSN)

Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map

js array copy speed comparison with spread operator

No description provided

slice VS splice to remove first element

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

slice VS splice VS shift: who is the fastest to keep constant size [VARIANT]

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

JS ForEach Tests

No description provided

Bitwise NOT VS Number

No description provided

toFixed vs toPrecision vs Math.round() with num > 0

No description provided

String iteration optimized

No description provided

Array.from() vs Array()

Testing the difference between creating filled arrays.

Array.from() vs to.String().split('')

No description provided

Array.from() vs toString()

No description provided

Includes vs indexof Array

No description provided

proxy vs object

No description provided

Array splice vs delete

No description provided

luxon vs datefns adding

No description provided

JS find + indexOf vs findIndex

JS find + indexOf vs findIndex

JS findIndex vs indexOf

JS findIndex vs indexOf

Intl.Collator.compare vs localeCompare (fixed)

No description provided

date diff

No description provided

Rewrite multiple classes (setAttribute vs. className vs. classList vs setAttribute=List vs className=List)

Rewrite multiple classes setAttribute vs. className vs. classList vs. setAttribute=List vs. className=List

Push vs Map mastermind 2

No description provided

Push vs Map mastermind

No description provided