drawImage() vs Path2DFastest: drawImage() (2.0x faster)
20,561 ops/sec
10,462 ops/sec
Fastest: Path2D (2.8x faster)
62,078 ops/sec
22,395 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| drawImage() | |
| Path2D |
| Test name | Executions per second |
|---|---|
| ✓ drawImage() | 152,678 Ops/sec |
| Path2D | 59,482 Ops/sec |