Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

set vs uniq

No description provided

set versus includes

set versus includes

flatMap vs reduce vs map

No description provided

flatMap vs reduce (test1)

No description provided

parseInt vs Number addition only with ints

No description provided

calcTriangleCount vs calcSegments

calcTriangleCount vs calcSegments

Pack array of bitmasks (numbers) to base64

No description provided

JavaScript spread operator vs Object.assign performance -2

No description provided

Object Property x Local Variable Accessing 1

No description provided

JS mod VS 2

No description provided

JS mod VS

No description provided

boolean literal comparison vs typeof js

No description provided

querySelector, querySelectorAll, getElementsByClassName, querySelector (ID), getElementsByID

No description provided

Array fill vs loop

No description provided

regex vs string replaceAll

Comparing regex vs string versions of replaceAll

Spread first vs map first then Array.from

No description provided

for vs foreach vs for..in vs for..of sum

Compare loop performance

Modulo VS bitwise AND for finding odd number

No description provided

replaceall vs replace js

No description provided

Event Bubbling and Event Capturing

No description provided

Pack array of bitmasks (numbers)

No description provided

Object.Values + Map vs for-in push

No description provided

Can JavaScript benefit from the ECS pattern 2?

JS arrays are weird and (probably?) not memory-contiguous, but just for kicks, let's see what difference there is (if any) between performing the same action on 1,000,000 objects in an object-oriented style (with the method attached to the object) vs an ECS-style (with the behavior separated from the raw data)

String literal vs Template literal assignment

Is there a difference between constant string and a constant template literal assignment?

destructuring types

No description provided