Run details:
Mozilla/5.0 (Linux; Android 7.0; NEM-L51) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
Chrome Mobile 92
Android 7.0
Mobile
3 years ago
Test name Executions per second
boolean array 13841.6 Ops/sec
typed Array with uInt8 8564.9 Ops/sec
boolean array - Strict 18547.1 Ops/sec
typed Array with uInt8 - Strict 9764.1 Ops/sec
weird boolean - Strict 63000.8 Ops/sec
uint8 .fill() 1035055.9 Ops/sec
weird boolean - .fill 1130894.4 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