Run details:
Mozilla/5.0 (Linux; Android 8.1.0; A502DL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.136 Mobile Safari/537.36
Chrome Mobile 74
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
drawImage on the main thread 16026.5 Ops/sec
drawImage on a worker thread (passing messages as Strings) 46032.5 Ops/sec
drawImage on a worker thread (passing messages as ArrayBuffer(100)) 22170.9 Ops/sec
drawImage on a worker thread (Transferable messages as ArrayBuffer(100)) 3893.6 Ops/sec
Script Preparation code:
Tests:
  • drawImage on the main thread

  • drawImage on a worker thread (passing messages as Strings)

  • drawImage on a worker thread (passing messages as ArrayBuffer(100))

  • drawImage on a worker thread (Transferable messages as ArrayBuffer(100))