Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
4 days ago
Test name Executions per second
boolean array 284598.7 Ops/sec
typed Array with uInt8 60380.4 Ops/sec
boolean array - Strict 287610.2 Ops/sec
typed Array with uInt8 - Strict 63762.1 Ops/sec
weird boolean - Strict 439533.7 Ops/sec
uint8 .fill() 20680530.0 Ops/sec
weird boolean - .fill 22572050.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