HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 54 community runs

Desktop Results:
Chrome 26 runs
fetch
11K/s
ajax
5K/s

Fastest: fetch (2.0x faster)

View exact numbers
  • fetch: 10,952 ops/sec
  • ajax: 5,405 ops/sec
Firefox 17 runs
fetch
10K/s
ajax
4K/s

Fastest: fetch (2.4x faster)

View exact numbers
  • fetch: 9,872 ops/sec
  • ajax: 4,067 ops/sec
Safari 6 runs
fetch
992/s
ajax
746/s

Fastest: fetch (1.3x faster)

View exact numbers
  • fetch: 992 ops/sec
  • ajax: 746 ops/sec
Mobile Results:
Chrome 5 runs
fetch
3K/s
ajax
2K/s

Fastest: fetch (1.5x faster)

View exact numbers
  • fetch: 3,058 ops/sec
  • ajax: 2,066 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
    ajax
    fetch

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Windows
View result in a separate tab
fetch
22K/s
ajax
16K/s
View exact numbers
Test name Executions per second
fetch 21,544 Ops/sec
ajax 16,260 Ops/sec