Run details:
Mozilla/5.0 (Linux; Android 11; motorola one 5G ace) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
boolean array 147781.1 Ops/sec
typed Array with uInt8 39962.2 Ops/sec
boolean array - Strict 150691.8 Ops/sec
typed Array with uInt8 - Strict 43216.9 Ops/sec
weird boolean - Strict 257739.3 Ops/sec
uint8 .fill() 4148184.2 Ops/sec
weird boolean - .fill 4939671.0 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