Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
4 months ago
Test name Executions per second
boolean array 39498.8 Ops/sec
typed Array with uInt8 56874.5 Ops/sec
boolean array - Strict 43560.4 Ops/sec
typed Array with uInt8 - Strict 61088.1 Ops/sec
weird boolean - Strict 434732.8 Ops/sec
uint8 .fill() 619949.1 Ops/sec
weird boolean - .fill 3440041.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