Run details:
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
Chrome 87
Linux
Desktop
3 years ago
Test name Executions per second
Native XHR 116.8 Ops/sec
Native XHR (try/catch) 116.2 Ops/sec
Fetch (promise) 118.2 Ops/sec
Fetch (async/await) 99.1 Ops/sec
Fetch (async/await - try/catch) 121.1 Ops/sec
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)