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: 5 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125 on Linux
View result in a separate tab
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


;