Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0
Firefox 101
Windows
Desktop
2 years ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 268914.8 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 198188.3 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 95403.8 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 262213.3 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 316981.5 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 315425.0 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 321871.3 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 309793.5 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 336680.9 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 308783.4 Ops/sec
Script Preparation code:
Tests:
  • HTMLCanvasElement 2d drawImage HTMLImageElement

  • HTMLCanvasElement 2d drawImage HTMLCanvasElement

  • HTMLCanvasElement 2d drawImage OffscrenCanvas

  • HTMLCanvasElement 2d drawImage ImageBitmap

  • OffscreenCanvas 2d drawImage HTMLImageELement

  • OffscreenCanvas 2d drawImage HTMLCanvasElement

  • OffscreenCanvas 2d drawImage OffscreenCanvas

  • OffscreenCanvas 2d drawImage ImageBitmap

  • HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap

  • OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap