Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Windows 7
Desktop
6 years ago
Test name Executions per second
boolean array 17493.0 Ops/sec
typed Array with uInt8 224031.6 Ops/sec
boolean array - Strict 23360.7 Ops/sec
typed Array with uInt8 - Strict 298536.0 Ops/sec
weird boolean - Strict 1509099.5 Ops/sec
uint8 .fill() 626351.2 Ops/sec
weird boolean - .fill 3900176.8 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