Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array descruct via [], {} and direct by index

No description provided

className.replace vs classList.replace vs classList.remove/add

Based on the test (className vs. setAttribute vs. classList - measurethat.net/Benchmarks/Show/3108)

Lodash cloneDeep vs Custom Recursive cloneDeep

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

unique_array_reduce

No description provided

luxon vs dayjs vs date-fns vs temporal-polyfill vs moment (formatting)

Create and format dates from a timestamp

yanite for forEach reduce map filter vs for

No description provided

array slice vs while loop (to empty array)

No description provided

Flatmap vs reduce bydget 2.0

No description provided

generateRandomString

No description provided

Fragment vs ReactDOM vs jQuery3.7.1

No description provided

Lodash union vs new Set() union

No description provided

create class instances check method arrow vs bind vs no-bind

measure the performance of a class method defined with arrow function vs bind vs no-bind

class method arrow vs bind vs no-bind

measure the performance of a class method defined with arrow function vs bind

JS regexp

regex VS string.startsWith

vaillan-js vs jquery3.7.1

No description provided

for vs for ... of vs forEach vs map

Compare loop performance

Regex vs .indexOf & .lastIndexOf vs .startsWith & .endsWith

Testing some things

array operations vs generators vs for loop

No description provided

filter map vs for loop

No description provided

array.forEach vs for..of vs for loop

No description provided

Fastest way to check if object is empty (3)

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

startsWith vs include vs substring vs Array.from

No description provided

Sanitize

No description provided

Remove duplicate objects by a property

No description provided

Object.fromEntries vs reduce - 100 keys

No description provided