Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Windows
Desktop
2 years ago
Test name Executions per second
ArrayBuffer.isView true 3196720.2 Ops/sec
instanceof true 3039446.2 Ops/sec
ArrayBuffer.isView false 3037407.5 Ops/sec
instanceof false 2975723.0 Ops/sec
HTML Preparation code:
Tests:
  • ArrayBuffer.isView true

  • instanceof true

  • ArrayBuffer.isView false

  • instanceof false