Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Windows
Desktop
one year ago
Test name Executions per second
boolean array 324582.6 Ops/sec
typed Array with uInt8 83472.3 Ops/sec
boolean array - Strict 329674.6 Ops/sec
typed Array with uInt8 - Strict 90975.1 Ops/sec
weird boolean - Strict 590984.9 Ops/sec
uint8 .fill() 10155330.0 Ops/sec
weird boolean - .fill 11214989.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