Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
10 months ago
Test name Executions per second
boolean array 132231.5 Ops/sec
typed Array with uInt8 25352.0 Ops/sec
boolean array - Strict 140721.2 Ops/sec
typed Array with uInt8 - Strict 25187.7 Ops/sec
weird boolean - Strict 204862.9 Ops/sec
uint8 .fill() 1880605.8 Ops/sec
weird boolean - .fill 10796492.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