HTML Preparation code:
Tests:

Historical Performance Data aggregated from 140 community runs

Desktop Results:
Chrome 94 runs
xhr
12K/s
fetch
11K/s
axios
8K/s

Fastest: xhr (1.6x faster)

View exact numbers
  • xhr: 12,403 ops/sec
  • fetch: 10,895 ops/sec
  • axios: 7,754 ops/sec
Firefox 14 runs
xhr
7K/s
fetch
6K/s
axios
2K/s

Fastest: xhr (2.9x faster)

View exact numbers
  • xhr: 6,726 ops/sec
  • fetch: 5,501 ops/sec
  • axios: 2,306 ops/sec
Other 9 runs
xhr
5K/s
fetch
2K/s
axios
2K/s

Fastest: xhr (2.1x faster)

View exact numbers
  • xhr: 4,877 ops/sec
  • fetch: 2,345 ops/sec
  • axios: 2,270 ops/sec
Safari 6 runs
xhr
2K/s
axios
2K/s
fetch
2K/s

Fastest: xhr (1.1x faster)

View exact numbers
  • xhr: 2,350 ops/sec
  • axios: 2,180 ops/sec
  • fetch: 2,125 ops/sec
Mobile Results:
Safari 11 runs
xhr
560/s
fetch
486/s
axios
482/s

Fastest: xhr (1.2x faster)

View exact numbers
  • xhr: 560 ops/sec
  • fetch: 486 ops/sec
  • axios: 482 ops/sec
Chrome 6 runs
xhr
2K/s
fetch
1K/s
axios
881/s

Fastest: xhr (2.0x faster)

View exact numbers
  • xhr: 1,764 ops/sec
  • fetch: 1,470 ops/sec
  • axios: 881 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    xhr
    fetch
    axios

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Chrome 150 on Windows
View result in a separate tab
xhr
52K/s
fetch
48K/s
axios
17K/s
View exact numbers
Test name Executions per second
xhr 51,722 Ops/sec
fetch 47,909 Ops/sec
axios 16,571 Ops/sec