Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Linux
Desktop
2 months ago
Test name Executions per second
boolean array 180914.8 Ops/sec
typed Array with uInt8 160210.9 Ops/sec
boolean array - Strict 196461.1 Ops/sec
typed Array with uInt8 - Strict 160502.8 Ops/sec
weird boolean - Strict 1186605.4 Ops/sec
uint8 .fill() 1494657.8 Ops/sec
weird boolean - .fill 10767318.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