Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
boolean array 284706.3 Ops/sec
typed Array with uInt8 51031.5 Ops/sec
boolean array - Strict 287467.9 Ops/sec
typed Array with uInt8 - Strict 54288.7 Ops/sec
weird boolean - Strict 219012.3 Ops/sec
uint8 .fill() 8348856.5 Ops/sec
weird boolean - .fill 9636106.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