Run details:
Mozilla/5.0 (Linux; Android 8.1.0; MI PLAY) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.114 Mobile Safari/537.36
Chrome Mobile 86
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
Native XHR 462.2 Ops/sec
Native XHR (try/catch) 541.6 Ops/sec
Fetch (promise) 556.8 Ops/sec
Fetch (async/await) 546.3 Ops/sec
Fetch (async/await - try/catch) 555.3 Ops/sec
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)


;