npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-http-client-bench

v1.4.10

Published

Benchmarks for all the popular Node.js HTTP client libraries

Downloads

13

Readme

node-http-client-bench Build Status

Benchmarks for popular Node.js HTTP client libraries.

These benchmarks use Nginx in a docker container to serve static files of several sizes.

Versions Tested

Usage

$ docker-compose build
$ docker-compose run benchmark sh
$ node index.js

Results

\

GET 16K.txt

Module                  OPS         RME     Samples
---------------  ----------  ----------  ----------
http.request           1609      ±3.95%         106
axios                  1255      ±2.87%          79
got                     977      ±2.80%          66
superagent             1523      ±2.90%         100
isomorphicFetch        1410      ±3.02%          93
nodeFetch              1332      ±2.79%          87
ky-universal           1273      ±3.86%          87

GET 32K.txt

Module                  OPS         RME     Samples
---------------  ----------  ----------  ----------
http.request           1472      ±3.29%          93
axios                  1025      ±3.62%          74
got                    1086      ±2.95%          71
superagent             1507      ±2.51%          92
isomorphicFetch        1339      ±2.75%          88
nodeFetch              1334      ±2.63%          84
ky-universal           1197      ±3.82%          83

GET 64K.txt

Module                  OPS         RME     Samples
---------------  ----------  ----------  ----------
http.request           1211      ±3.51%          77
axios                   914      ±3.31%          65
got                     872      ±2.86%          59
superagent             1232      ±2.18%          80
isomorphicFetch         995      ±2.72%          75
nodeFetch              1079      ±1.91%          71
ky-universal            877      ±3.14%          67

GET 256K.txt

Module                  OPS         RME     Samples
---------------  ----------  ----------  ----------
http.request            703      ±3.04%          42
axios                   474      ±3.67%          36
got                     427      ±3.22%          28
superagent              702      ±1.96%          44
isomorphicFetch         539      ±2.19%          35
nodeFetch               551      ±2.01%          37
ky-universal            459      ±2.75%          30

GET 1024K.txt

Module                  OPS         RME     Samples
---------------  ----------  ----------  ----------
http.request            246      ±3.17%          19
axios                   184      ±2.01%          12
got                     206      ±2.00%          13
superagent              255      ±1.92%          16
isomorphicFetch         197      ±1.46%          12
nodeFetch               186      ±2.12%          13
ky-universal            205      ±2.15%          13

License

MIT © Forrest Desjardins