Benchmark name When Created
querySelector, querySelectorAll, getElementsByClassName, querySelector (ID), getElementsByID 14 days ago
Array fill vs loop 14 days ago
regex vs string replaceAll

Comparing regex vs string versions of replaceAll

14 days ago
Spread first vs map first then Array.from 14 days ago
for vs foreach vs for..in vs for..of sum

Compare loop performance

14 days ago
Modulo VS bitwise AND for finding odd number 14 days ago
replaceall vs replace js 14 days ago
Event Bubbling and Event Capturing 14 days ago
Pack array of bitmasks (numbers) 14 days ago
Object.Values + Map vs for-in push 14 days ago
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)

14 days ago
String literal vs Template literal assignment

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

14 days ago
destructuring types 14 days ago
Trimming leading/trailing characters (multiple) 15 days ago
JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321 2312312

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

15 days ago
JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

JSON.stringify vs structuredClone 2dsfasr12qe12321312331312321

15 days ago
testing string 15 days ago
JavaScript .sort() vs .toSorted ()vs [...].sort()

Compare Javascript sort performance

15 days ago
JavaScript reverse vs [,..spread].reverse

Compare Array.reverse() to Array.toReversed() performance wise.

15 days ago
Date methods: toISOString, getDay, constructor 15 days ago
Slice vs Splice vs Shift (Large Array 2)

Compares the speed for removing items from the beginning of an array

15 days ago
array join vs toString js vs json

test

15 days ago
RegEx.match vs. startWith2

a

16 days ago
RegEx.match vs. startWith

a

16 days ago
Access to Proxy vs Array 16 days ago

 Create Your benchmarks