Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash forEach vs array.forEach vs for loop

No description provided

Alternative ImageBitmap resizing option using CanvasElement

There is currently a bug on Chrome Version 74.0.3729.131 (Official Build) (64-bit) (5/12/2019) with ImageBitmap where attempting to resize an ImageBitmap through ImageBitmapOptions will causes the resulting ImageBitmap to render very poorly when used with drawImage, even if the resulting ImageBitmap is resized to be smaller than the source image.

moment.valueOf vs Date.valueOf

No description provided

1d to 2d array - for i vs while splice

No description provided

json stringify vs array tostring vs type coercion

No description provided

lodash merge vs deepmerge

No description provided

ISO Date vs Epoch

No description provided

Lodash.get vs Property dot notation for nested properties

No description provided

className.indexOf vs. classList.contains

No description provided

Bug with Resizing ImageBitmap causes slower than expected performance

There is currently a bug on Chrome Version 74.0.3729.131 (Official Build) (64-bit) (5/12/2019) with ImageBitmap where attempting to resize an ImageBitmap through ImageBitmapOptions will causes the resulting ImageBitmap to render very poorly when used with drawImage, even if the resulting ImageBitmap is resized to be smaller than the source image.

className vs. getAttribute vs. classList

No description provided

Concat vs Slice

No description provided

OffscreenCanvas vs HTMLCanvasElement drawImage() (w/ Transferables) (version: 1)

1. drawImage on the main thread 2. drawImage on a worker thread (passing messages as Strings) 3. drawImage on a worker thread (passing messages as ArrayBuffer(100)) 4. drawImage on a worker thread (Transferable messages as ArrayBuffer(100))

OffscreenCanvas vs HTMLCanvasElement drawImage() (w/ Transferable)

Comparing OffscreenCanvas vs HTMLCanvasElement, and investigating the usage of multiple postMessage strategies, from structured cloning of objects to transferable ArrayBuffers.

OffscreenCanvas drawImage vs HTMLCanvasElement drawImage()

Comparing Worker's OffscreenCanvas.drawImage with Main Thread's Canvas's drawImage and some message posting strategies

assign

12345

OffscreenCanvas

OffscreenCanvas

Image vs ImageBitmap+OffscreenCanvas

No description provided

Image vs ImageBitmap 2

No description provided

Array.prototype.slice vs Array.from

No description provided

Image vs ImageBitmap with context2d

Testing draw calls using a raw Image versus an ImageBitmap

Date.now() vs new Date().getTime()

No description provided

for loop vs. .map

No description provided

function vs arrow

No description provided

lodash.each vs lodah.forEach

No description provided

NEW BENCHMARK Your Benchmarks