Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Fetch, Axios, Mande, XHR
(version: 0)
Comparing performance of:
Pure XHR vs Pure Fetch vs Axios vs Mande (Fetch)
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/mande@2.0.8/dist/mande.iife.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
Tests:
Pure XHR
const xhr = new XMLHttpRequest(); xhr.open('GET', 'https://www.googleapis.com/discovery/v1/apis'); xhr.onload = () => console.log(JSON.parse(xhr.responseText)); xhr.send();
Pure Fetch
fetch('https://www.googleapis.com/discovery/v1/apis') .then(response => response.json()) .then(console.log)
Axios
axios.get('https://www.googleapis.com/discovery/v1/apis') .then((response) => response.json()) .then(console.log);
Mande (Fetch)
Mande.mande('https://www.googleapis.com/').get('discovery/v1/apis').then(console.log);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Pure XHR
Pure Fetch
Axios
Mande (Fetch)
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser/OS:
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Pure XHR
13312.6 Ops/sec
Pure Fetch
11957.2 Ops/sec
Axios
8731.8 Ops/sec
Mande (Fetch)
9712.4 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?