Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Linux
Desktop
5 months ago
Test name Executions per second
Native XHR 6995.8 Ops/sec
Native XHR (try/catch) 8131.8 Ops/sec
Fetch (promise) 7700.0 Ops/sec
Fetch (async/await) 7173.8 Ops/sec
Fetch (async/await - try/catch) 7728.8 Ops/sec
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)


;