Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Windows
Desktop
one year ago
Test name Executions per second
HTMLCanvasElement 2d drawImage HTMLImageElement 2073025.9 Ops/sec
HTMLCanvasElement 2d drawImage HTMLCanvasElement 2437024.5 Ops/sec
HTMLCanvasElement 2d drawImage OffscrenCanvas 2386898.0 Ops/sec
HTMLCanvasElement 2d drawImage ImageBitmap 2441233.5 Ops/sec
OffscreenCanvas 2d drawImage HTMLImageELement 2351536.0 Ops/sec
OffscreenCanvas 2d drawImage HTMLCanvasElement 2214576.8 Ops/sec
OffscreenCanvas 2d drawImage OffscreenCanvas 2423299.8 Ops/sec
OffscreenCanvas 2d drawImage ImageBitmap 2517768.2 Ops/sec
HTMLCanvasElement bitmaprenderer transferFromImageBitmap ImageBitmap 1642198.8 Ops/sec
OffscreenCanvas bitmaprenderer transferFromImageBitmap ImageBitmap 1242713.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