Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Math.abs speed (Math.random)

No description provided

Math.sign speed comparison

No description provided

Math.sign speed

No description provided

Proxy vs Proxy reflect vs prototype vs direct

No description provided

Proxy vs prototype vs direct

No description provided

Proxy vs prototype

No description provided

createImageBitmap resize vs canvas

Firefox currently has a bug where resizeWidth/Height is not properly working and results in the image being squished or squashed. https://bugzilla.mozilla.org/show_bug.cgi?id=1733559 Therefore, compare canvas scaling to ImageBitmap scaling when it works (Chrome), and compared to just creating an ImageBitmap. Relevant: https://www.measurethat.net/Benchmarks/Show/5123/0/bug-with-resizing-imagebitmap-causes-slower-than-expect Setup can be visually inspected at: https://codesandbox.io/s/createimagebitmap-benchmark-setup-jldf3z?file=/src/index.js

Javascript IndexOf vs Include vs map v2

No description provided

Create array vs Int32Array

Testing allocation performance

immutable vs Native Javascript Map With Read

immutable vs Native Javascript Map With Read

immutable vs Native Javascript Map

immutable vs Native Javascript Map

Array initialization: preallocate vs push vs preallocate & fill

No description provided

RXJS 7.8.0 vs Vanilla

No description provided

Dataset vs getAttribute vs Property v2.1

No description provided

getAttribute vs dataset 2

Compare setAttribute to dataset

Get array from iterable with Array.from() vs for loop

Array.from is notoriously slow. This compares creating an Array from an iterable with Array.from() vs a for loop.

Hashes: JavaString, DJB2, Cyr53

Compares different hash functions in javascript Cyrb53 - see https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js

chunk test

No description provided

Get and set in typed array vs simple array

No description provided

Uint8Array vs Uint8ClampedArray - more numbers

No description provided

object-hash md5 vs JSON.stringify

No description provided

clientHeight vs offsetHeight vs getBoundingClientRect height only

No description provided

array includes lodash vs vanilla JS

No description provided

FAST CEIL

No description provided

Math.ceil vs floor vs ~~

No description provided

NEW BENCHMARK Your Benchmarks