HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 41 community runs

Desktop Results:
Chrome 32 runs
drawImage()
21K/s
Path2D
10K/s

Fastest: drawImage() (2.0x faster)

View exact numbers
  • drawImage(): 20,561 ops/sec
  • Path2D: 10,462 ops/sec
Firefox 9 runs
Path2D
62K/s
drawImage()
22K/s

Fastest: Path2D (2.8x faster)

View exact numbers
  • Path2D: 62,078 ops/sec
  • drawImage(): 22,395 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    drawImage()
    Path2D

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Mac OS X 10.15.7
View result in a separate tab
drawImage()
153K/s
Path2D
59K/s
View exact numbers
Test name Executions per second
drawImage() 152,678 Ops/sec
Path2D 59,482 Ops/sec