Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
boolean array 217751.8 Ops/sec
typed Array with uInt8 59814.4 Ops/sec
boolean array - Strict 215525.2 Ops/sec
typed Array with uInt8 - Strict 66589.9 Ops/sec
weird boolean - Strict 405845.6 Ops/sec
uint8 .fill() 9658049.0 Ops/sec
weird boolean - .fill 10209395.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