Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.5.1
Mobile
one year ago
Test name Executions per second
fillRect/concat 174.9 Ops/sec
fillRect/join 147.8 Ops/sec
1×1 Image Data 71.5 Ops/sec
fillRect/template literal 103.9 Ops/sec
getImageData/putImageData 328.1 Ops/sec
getImageData/putImageData - set px.rgba 289.5 Ops/sec
getImageData/putImageData - set [px.r, px.g, px.b, px.a] 285.0 Ops/sec
getImageData/putImageData - set - no getImageData 516.4 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