Skip to content

Instantly share code, notes, and snippets.

@ctbui
ctbui / axios-vs-superagent-vs-got.js
Last active December 23, 2020 16:23 — forked from natesilva/axios-vs-superagent.js
Compare performance of Axios vs. SuperAgent when running under Node.js
const Benchmark = require('benchmark');
const axios = require('axios');
const got = require('got');
const superagent = require('superagent');
const suite = new Benchmark.Suite();
const targetUrl = 'http://httpbin.org/ip';
suite