Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array concat vs spread vs push spread, loop, apply vs lodash.concat

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

cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency number

No description provided

JSON.parse() vs. eval() large object

No description provided

me vs chatgpt

No description provided

Object key vs values.includes

No description provided

213find vs findIndex vs some (Array prototype methods)

No description provided

MapBy reduce vs foreach

No description provided

native reverse findLastIndex vs lodash _.findLastIndex

Compare lodash findLastIndex with native findLastIndex

js-xss vs DOMPurify

No description provided

binary check1

No description provided

binary check

No description provided

slice vs substring vs [] vs charAt vs charCodeAt

No description provided

ES6 Class vs Prototype vs Object Literal (modified)

Test the speed and memory usage using 3 different techniques for constructing class objects.

testeeeeeeee

No description provided

Array = Array.concat(Array) vs Array.push(...Array)

Compares array concatenation via the classic "concat" method and the "push" with a spread operator.

Attribute existence check within NamedNodeMap

Comparing perf of iterating through a NamedNodeMap in syncNodeFrom vs an Array created from said map. In this variant, we only create the array for the element being modified.

Array.find vs. Map.get with 50 and 100 items

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

Single Array & NamedNodeMap

Comparing perf of iterating through a NamedNodeMap in syncNodeFrom vs an Array created from said map. In this variant, we only create the array for the element being modified.

Array vs NamedNodeMap

Comparing perf of iterating through a NamedNodeMap in syncNodeFrom vs an Array created from said map.

Array.find vs. Map.get by array

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

Array.find vs. Map.get smaller

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

Test array concat with larger array

No description provided

Test array concat

No description provided

clientWidth vs offsetWidth vs style.width

No description provided

Array.find vs. Map.get semua

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