Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/213.0.449417121 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.5
Mobile
2 years ago
Test name Executions per second
boolean array 116338.6 Ops/sec
typed Array with uInt8 1003550.4 Ops/sec
boolean array - Strict 111538.6 Ops/sec
typed Array with uInt8 - Strict 940221.0 Ops/sec
weird boolean - Strict 4305336.0 Ops/sec
uint8 .fill() 726967.1 Ops/sec
weird boolean - .fill 4302560.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