Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

querySelector(nth-of-child) vs querySelectorAll

No description provided

testing 20250224 querySelector(nth) vs querySelectorAll

querySelector(nth) vs querySelectorAll

Untransform vs save canvas

No description provided

Random generation of 4096 values (Math.random vs Crypto API)

No description provided

SVD speed test

No description provided

replace vs substring at the end

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

array fill vs spread

Array fill method vs for loop performance validation

Array.from vs Array.fill vs [...Array].map

No description provided

Dict vs. Map

Large dictionary - how worse is it from array with direct reference? And how does Map perform?

spread before shallow copy array method

No description provided

Set ES2024 Method Benchmark

No description provided

JS for loop vs Array.reduce

No description provided

custom element vs div init

No description provided

array[array.length - 1] vs array.at(-1) 1e5

No description provided

HTMLImageElement vs HTMLCanvasElement vs ImageBitmap Forked

CanvasRenderingContext2d::drawImage with HTMLImageElement vs HTMLCanvasElement vs ImageBitmap

1/x vs x**-1

No description provided

[] + push vs new Array() + index insertion (random insertion order) (fixed)

No description provided

[] + push vs new Array() + index insertion (random insertion order)

No description provided

[] + push vs new Array() + index insertion

No description provided

new Array(length) vs Array.from({ length })

No description provided

integer vs decimal

- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0

Map vs Object - property access - (string, hashCode as number, hashCode as string)

No description provided

Hashmap.has vs Array.Filter (random access - generated at start)

No description provided

Hashmap.has vs Array.Filter

No description provided

0f34ebcc-626d-4bc7-a899-c8b8f3db7d88

No description provided