HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
putImageData
411/s
fillRect
13/s

Fastest: putImageData (32.4x faster)

View exact numbers
  • putImageData: 411 ops/sec
  • fillRect: 13 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
    putImageData
    fillRect

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
putImageData
361/s
fillRect
1/s
View exact numbers
Test name Executions per second
putImageData 361 Ops/sec
fillRect 1 Ops/sec