Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

r v s bench

No description provided

set vs compare functions and set

No description provided

innerhtml vs removechild vs remove vs innerText

No description provided

splice vs =

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

Manipulate String x Number

No description provided

>= String x >= Number

No description provided

for vs for in with index 2

No description provided

for vs for in with index

No description provided

QuerySelector vs QuerySelectorAll + forEach for 1 element

No description provided

tttttttttttttttttttttttttttttttt

dfgdfgdgdgdg

str split vs regex replace

No description provided

for of vs for vs foreach

No description provided

Reduce: filter-map vs push vs spread

No description provided

indexOf vs split - test

testing speed

Function call with raw arguments vs Array expansion

Compare raw arguments vs ... expansion.

RPC eval vs JSON parse.

Compare function invocation using eval or JSON parse.

Create Map/Set vs reuse Map/Set

No description provided

conditionally insert properties w/ terinary

https://www.reddit.com/r/javascript/comments/mrzrty/the_shortest_way_to_conditionally_insert/

conditionally insert properties

https://www.reddit.com/r/javascript/comments/mrzrty/the_shortest_way_to_conditionally_insert/

JavaScript spread operator vs Object.assign performance - forked for equivalent functionality

No description provided

querySelector with html tag vs querySelector only class

No description provided

Intl.Collator.compare() vs localeCompare()

No description provided

getElementById vs querySelector(css) vs getElementsByClassName vs getElementsByName

Test performance of different ways of get just one particular DOM element

feachand

No description provided

Object.assign vs {...newValue} 2

No description provided