Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
one year ago
Test name Executions per second
boolean array 185075.4 Ops/sec
typed Array with uInt8 59249.0 Ops/sec
boolean array - Strict 226036.2 Ops/sec
typed Array with uInt8 - Strict 67830.5 Ops/sec
weird boolean - Strict 458787.5 Ops/sec
uint8 .fill() 10538130.0 Ops/sec
weird boolean - .fill 11357460.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