Run details:
Mozilla/5.0 (Linux; Android 9; SM-G950U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.86 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
Native XHR 1163.9 Ops/sec
Native XHR (try/catch) 1200.8 Ops/sec
Fetch (promise) 1109.7 Ops/sec
Fetch (async/await) 1016.4 Ops/sec
Fetch (async/await - try/catch) 1067.1 Ops/sec
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)