Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Linux
Desktop
3 years ago
Test name Executions per second
boolean array 56801.6 Ops/sec
typed Array with uInt8 18627.4 Ops/sec
boolean array - Strict 57502.6 Ops/sec
typed Array with uInt8 - Strict 18471.8 Ops/sec
weird boolean - Strict 147928.1 Ops/sec
uint8 .fill() 1722547.1 Ops/sec
weird boolean - .fill 8890600.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