Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Windows
Desktop
2 years ago
Test name Executions per second
boolean array 289233.5 Ops/sec
typed Array with uInt8 92092.0 Ops/sec
boolean array - Strict 279736.9 Ops/sec
typed Array with uInt8 - Strict 86593.9 Ops/sec
weird boolean - Strict 553311.9 Ops/sec
uint8 .fill() 7550040.0 Ops/sec
weird boolean - .fill 8013351.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