Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash vs json parse v2

No description provided

lodash vs json parse

No description provided

endsWith vs includes test file names 2

No description provided

endsWith vs includes test file names

No description provided

key versus integer 2

No description provided

key versus integer

No description provided

JavaScript spread operator vs Object.assign performance vs Adding to object one (size 5)

No description provided

JavaScript spread operator vs Object.assign performance vs Adding to object one

No description provided

querySelector(nth-of-child) vs querySelectorAll and index array

No description provided

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