Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
bitwise operator on Int32Array 328.5 Ops/sec
boolean operator on Int32Array 325.2 Ops/sec
boolean operator with comparitors on Int32Array 328.5 Ops/sec
bitwise operator on Float32Array 327.6 Ops/sec
bitwise operator on Uint32Array 336.0 Ops/sec
boolean operator on Uint32Array 315.1 Ops/sec
boolean operator on Uint32Array with comparators 314.8 Ops/sec
Script Preparation code:
Tests:
  • bitwise operator on Int32Array

  • boolean operator on Int32Array

  • boolean operator with comparitors on Int32Array

  • bitwise operator on Float32Array

  • bitwise operator on Uint32Array

  • boolean operator on Uint32Array

  • boolean operator on Uint32Array with comparators