Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Windows
Desktop
2 months ago
Test name Executions per second
boolean array 146740.6 Ops/sec
typed Array with uInt8 122425.4 Ops/sec
boolean array - Strict 150639.9 Ops/sec
typed Array with uInt8 - Strict 122334.1 Ops/sec
weird boolean - Strict 925908.9 Ops/sec
uint8 .fill() 2459885.5 Ops/sec
weird boolean - .fill 12564612.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