Test case name | Result |
---|---|
fillRect using a concatenated color string | |
fillRect using a joined color string | |
fillRect with a template literal color string | |
fillRect with a constant color string | |
putImageData() using a 1px by 1px ImageData instance | |
Using drawImage to copy a pixel from a palette canvas |
Test name | Executions per second |
---|---|
fillRect using a concatenated color string | 894.9 Ops/sec |
fillRect using a joined color string | 867.2 Ops/sec |
fillRect with a template literal color string | 851.1 Ops/sec |
fillRect with a constant color string | 1874.9 Ops/sec |
putImageData() using a 1px by 1px ImageData instance | 30.3 Ops/sec |
Using drawImage to copy a pixel from a palette canvas | 387.4 Ops/sec |