GithubHelp home page GithubHelp logo

benchmark-faraday-adapters's Introduction

Faraday adapters benchmarking

A simple benchmarking to compare the performance of different Faraday HTTP adapters.

Starts a thin webserver with a HelloWorld endpoint to which the benchmark performs GET requests.

Usage

From the project's root folder, run:

ruby server.rb & ruby benchmark.rb

Example results

                           user     system      total        real
patron                 0.040436   0.029721   0.070157 (  0.129381)
net_http_persistent    0.082035   0.036030   0.118065 (  0.141394)
net_http               0.099019   0.020407   0.119426 (  0.144185)
em_synchrony           0.091491   0.042713   0.134204 (  0.165983)
httpclient             0.087332   0.072761   0.160093 (  0.168402)
em_http                0.102681   0.034315   0.136996 (  0.170986)
typhoeus               0.132477   0.014855   0.147332 (  0.181622)
httpx                  0.194476   0.013141   0.207617 (  0.229202)
excon                  0.199055   0.013400   0.212455 (  0.240389)
http                   0.175902   0.036417   0.212319 (  0.241920)

benchmark-faraday-adapters's People

Contributors

gerbal avatar raul-oliver avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.