Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
boolean array 304338.7 Ops/sec
typed Array with uInt8 75745.6 Ops/sec
boolean array - Strict 310005.3 Ops/sec
typed Array with uInt8 - Strict 83457.5 Ops/sec
weird boolean - Strict 563249.6 Ops/sec
uint8 .fill() 9045814.0 Ops/sec
weird boolean - .fill 12234097.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