Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
boolean array 49004.1 Ops/sec
typed Array with uInt8 13895.5 Ops/sec
boolean array - Strict 48657.4 Ops/sec
typed Array with uInt8 - Strict 16548.4 Ops/sec
weird boolean - Strict 125869.1 Ops/sec
uint8 .fill() 964010.0 Ops/sec
weird boolean - .fill 5450487.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