Run details:
Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0
Firefox Mobile 68
Android
Mobile
3 years ago
Test name Executions per second
fillRect/concat 5.2 Ops/sec
fillRect/join 5.0 Ops/sec
1×1 Image Data 35.8 Ops/sec
fillRect/template literal 5.2 Ops/sec
getImageData/putImageData 31.2 Ops/sec
getImageData/putImageData - set px.rgba 29.1 Ops/sec
getImageData/putImageData - set [px.r, px.g, px.b, px.a] 30.5 Ops/sec
getImageData/putImageData - set - no getImageData 26.6 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