Run details:
Mozilla/5.0 (Linux; Android 9; Mi A2 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
boolean array 10294.3 Ops/sec
typed Array with uInt8 7078.0 Ops/sec
boolean array - Strict 12076.9 Ops/sec
typed Array with uInt8 - Strict 8555.3 Ops/sec
weird boolean - Strict 53668.9 Ops/sec
uint8 .fill() 1086200.4 Ops/sec
weird boolean - .fill 1172705.5 Ops/sec
Script Preparation code:
Tests:
  • boolean array

  • typed Array with uInt8

  • boolean array - Strict

  • typed Array with uInt8 - Strict

  • weird boolean - Strict

  • uint8 .fill()

  • weird boolean - .fill