Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

for in vs Object.keys sort

No description provided

Unique Array [Set vs. Generator]

No description provided

slice VS splice VS shift: who is the fastest to keep constant size after adding multiple

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

equal comparison

equal comparison

lodash.head() vs [0] updated with optional chaining

Is head() needed only to check length !== 0 ? P.s. Empty testcase for [0] is useless because it won't crash on trying to get nonexistent element

slice vs capturing group

No description provided

Lodash remive vs native filter

compare filter methods on arrays that both modify objects and remove items from the array.

Storing array length before for

No description provided

lodash uniqWith vs filter

No description provided

Object Literal vs If Else vs Switch Case

Benchmark of Object Literal vs If Else vs Switch Case

new Lodash cloneDeep vs native cloneDeep

compare array copy/clone methods

Object.fromEntries vs reduce without tostring function

No description provided

spread array performance (vs slice, splice, concat)asd

No description provided

Math.pow() vs exponentiation operator

No description provided

Add new element to array: push vs push with i

No description provided

moment vs date-fns date math

Which date library can add and subtract days the fastest?

Join an Array with another Array vs an Object vs a Map

Performs a join between an Array and another Array, or an Object, or a Map. Similar to a join between two tables in a database.

Array vs Object vs Map find

Benchmarks finding of a pin (value) in a haystack (array, object or map)

Split vs RegEx for numbers

No description provided

Moment format against Date

No description provided

jQuery versions

benchmark different versions of jquery

negative to positive number

No description provided

[Array 10] flatMap vs reduce (concat) vs reduce (push)

No description provided

flatMap vs reduce (concat) vs reduce (push)

No description provided

Comparação entre createElement vs string template1

Comparação entre createElement vs string template