Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36 EdgA/137.0.0.0
Chrome Mobile 137
Android
Mobile
one year ago
Test name Executions per second
Native XHR 1623.9 Ops/sec
Native XHR (try/catch) 1798.8 Ops/sec
Fetch (promise) 1404.8 Ops/sec
Fetch (async/await) 1510.3 Ops/sec
Fetch (async/await - try/catch) 1535.3 Ops/sec
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)