Script Preparation code:
Tests:
  • Native XHR

  • Native XHR (try/catch)

  • Fetch (promise)

  • Fetch (async/await)

  • Fetch (async/await - try/catch)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Native XHR
    Native XHR (try/catch)
    Fetch (promise)
    Fetch (async/await)
    Fetch (async/await - try/catch)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
Native XHR 11074.5 Ops/sec
Native XHR (try/catch) 12286.9 Ops/sec
Fetch (promise) 8743.1 Ops/sec
Fetch (async/await) 7389.7 Ops/sec
Fetch (async/await - try/catch) 8611.2 Ops/sec