Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Ubuntu
Desktop
4 years ago
Test name Executions per second
boolean array 26269.4 Ops/sec
typed Array with uInt8 201808.2 Ops/sec
boolean array - Strict 26845.9 Ops/sec
typed Array with uInt8 - Strict 149118.9 Ops/sec
weird boolean - Strict 878713.8 Ops/sec
uint8 .fill() 413587.5 Ops/sec
weird boolean - .fill 2585722.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