Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0
Firefox 87
Windows
Desktop
3 years ago
Test name Executions per second
boolean array 40097.8 Ops/sec
typed Array with uInt8 9216.6 Ops/sec
boolean array - Strict 34086.3 Ops/sec
typed Array with uInt8 - Strict 9936.0 Ops/sec
weird boolean - Strict 78440.9 Ops/sec
uint8 .fill() 568545.6 Ops/sec
weird boolean - .fill 2426293.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