Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

[JS] Substring vs Slice

No description provided

Add item to array: push vs spread vs assign vs items.length

No description provided

findIndex vs find - JS Perf

No description provided

looping thru set/map/array

No description provided

regex removing whitespace vs trim vs trimStart vs trimEnd

testing removing end whitespace vs trimEnd

Reading textContent vs innerText vs innerHTML

No description provided

Asd asdas dasd asd

asdasdasd sad

Array.prototype.concat vs spread operator [3]

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

Destructuration vs direct access in filter

No description provided

moment(string) vs moment(new Date(string)) vs new Date(string) vs dayjs(string) vs dayjs(new Date(string))

No description provided

Date.parse vs. new Date().getTime

No description provided

Javascript: Case insensitive string comparison performance2

No description provided

eval vs new Function vs function(Sample JS Functions) 2

No description provided

lodash xor performance with multiple arrays

Searching for faster solution for _.xor(a, b)

Map.has vs Set.has vs Array.includes 01.04.2025

No description provided

Map.has vs Set.has 01.04.2025

No description provided

Intl.Collator.compare vs localeCompare (numeric)

No description provided

flatMap() vs filter().map() vs reduce() vs forOf loop v8

flatMap vs filter map vs reduce() vs forOf loop

bignumber.js vs. big.js vs. decimal.js 20250401

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

Passing objects with raw values vs passing just raw values vs array of values spread

Updated because it looks like Firefox optimizes away the entire test

Array constructor vs literal performance - 100000 itemslljkjlkjkjlkjjlj

No description provided

Boolean cast vs !! test

No description provided

Printing 1000 array elements, for vs for (with function call) vs foreach

No description provided

Some vs Find on objects2

No description provided

Some vs Find on objects

No description provided