This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
from webob.request import Request | |
class Application: | |
def __init__(self, app): | |
self._app = app | |
def __call__(self, environ, start_response): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |