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 Edg/97.0.1072.62
Chrome 97
Windows
Desktop
2 years ago
Test name Executions per second
boolean array 234366.7 Ops/sec
typed Array with uInt8 73961.3 Ops/sec
boolean array - Strict 241744.9 Ops/sec
typed Array with uInt8 - Strict 76233.5 Ops/sec
weird boolean - Strict 472337.1 Ops/sec
uint8 .fill() 7041092.0 Ops/sec
weird boolean - .fill 7806803.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