Skip to content

Instantly share code, notes, and snippets.

View fafhrd91's full-sized avatar

Nikolay Kim fafhrd91

  • Microsoft
  • San Francisco, US
View GitHub Profile
extern crate actix;
extern crate actix_web;
extern crate env_logger;
extern crate futures;
extern crate serde_json;
#[macro_use] extern crate serde_derive;
use actix_web::*;
use futures::Future;
@fafhrd91
fafhrd91 / gist:881bfa7bb50378f852fa700c3b554de7
Last active December 16, 2017 18:51
Web framework benchmarks
Name 1 thread 1 pipeline 3 thread 3 pipeline 8 thread 8 pipeline
Actix 91.200 950.000 122.100 2.083.000 107.400 2.730.000
Gotham 61.000 178.000
Iron 94.500 78.000
Rocket 95.500 failed
Shio 71.800 317.800
tokio-minihttp 106.900 1.047.000
import io
from webob.request import Request
class Application:
def __init__(self, app):
self._app = app
def __call__(self, environ, start_response):