Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
Chrome Mobile 126
Android
Mobile
5 months ago
Test name Executions per second
fillRect/concat 157.1 Ops/sec
fillRect/join 142.3 Ops/sec
1×1 Image Data 2.2 Ops/sec
fillRect/template literal 93.5 Ops/sec
getImageData/putImageData 379.9 Ops/sec
getImageData/putImageData - set px.rgba 334.1 Ops/sec
getImageData/putImageData - set [px.r, px.g, px.b, px.a] 322.8 Ops/sec
getImageData/putImageData - set - no getImageData 584.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • fillRect/concat

  • fillRect/join

  • 1×1 Image Data

  • fillRect/template literal

  • getImageData/putImageData

  • getImageData/putImageData - set px.rgba

  • getImageData/putImageData - set [px.r, px.g, px.b, px.a]

  • getImageData/putImageData - set - no getImageData