Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Map vs Object.entries

only on a small collection

boolean not to number

No description provided

Better set.has vs array.includes

It often does not make sense to just compare only includes vs has. If we can not create the Set beforehand to be reused, and we need to initialize it every time, it will probably deteriorate the performance and we are better off using just simple include most of the times.

getRelevantPositions2

No description provided

getRelevantPositions

No description provided

Comparison of date creation methods

new Date(value) new Date(dateString) new Date(year, monthIndex, day)

.startsWith vs .charAt vs .charCodeAt for single character

Testing some things

findIndex vs indexOf - JavaScript performance v2

No description provided

UUID m21ethods

No description provided

sdgdsdgswUUID methods

No description provided

slice vs substr vs sdsgubstring (with no end index)

Compares slice, substr and substring to each other when there is only a start index

UUID meth2odss1

No description provided

Lodash isEqual vs JSON stringify test

No description provided

deep json spread vs flat

No description provided

var vs let vs boolean vs string vs int

No description provided

boolean-vs-number

compare !!number and number

Ramda groupby vs vanilla reduce

No description provided

Lodash.get vs Lodash.property vs native vs native with optional chaining

No description provided

Testing both ways to run conditions on getAttribute from a Node

No description provided

ReplaceAll vs Replace with Regex on a Guid

No description provided

ReplaceAll vs Replace with regex

No description provided

Node parent walking vs node contains 2

No description provided

Node parent walking vs node contains

No description provided

Regex vs .startsWith vs === vs .indexOf

Testing some things

Check data attribute: hasAttribute vs dataset

Compare hasAttribute to in dataset

NEW BENCHMARK Your Benchmarks