Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Ubuntu
Desktop
3 years ago
Test name Executions per second
boolean array 43820.1 Ops/sec
typed Array with uInt8 10636.6 Ops/sec
boolean array - Strict 42108.6 Ops/sec
typed Array with uInt8 - Strict 10604.6 Ops/sec
weird boolean - Strict 81470.4 Ops/sec
uint8 .fill() 307618.0 Ops/sec
weird boolean - .fill 2130867.2 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