Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15
Safari 12
Mac OS X 10.14.4
Desktop
4 years ago
Test name Executions per second
ArrayBuffer.isView true 1781769.0 Ops/sec
instanceof true 1843617.8 Ops/sec
ArrayBuffer.isView false 1794064.4 Ops/sec
instanceof false 1840064.6 Ops/sec
HTML Preparation code:
Tests:
  • ArrayBuffer.isView true

  • instanceof true

  • ArrayBuffer.isView false

  • instanceof false