Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Linux
Desktop
2 years ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 212610.0 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 186438.1 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 192184.8 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 167232.4 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 100355.2 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 203796.5 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 168949.1 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 186394.6 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 171274.3 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 206197.2 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