Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Mac OS X 11.2.3
Desktop
3 years ago
Test name Executions per second
boolean array 176110.5 Ops/sec
typed Array with uInt8 41709.1 Ops/sec
boolean array - Strict 184718.9 Ops/sec
typed Array with uInt8 - Strict 45786.7 Ops/sec
weird boolean - Strict 277843.5 Ops/sec
uint8 .fill() 6785182.5 Ops/sec
weird boolean - .fill 7595029.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