Rocket和Actix-Web的异步性能测试
Rust目前最火的两个web框架就是Actix-Web和Rocket, 众所周知,Rocket的优势在于易用性,Actix-web在于性能,最近,Rocket...因此,作者想看看异步分支和主分支如何的性能如何同时和Actix-Web进行比较是很有趣的。
测试使用的项目
用Rocket编写的hello world应用程序
#!...use actix_web::{web, App, HttpServer, Responder};
fn index() -> impl Responder {
"Hello, World"....to_string()
}
fn main() -> std::io::Result {
HttpServer::new(|| App::new().service(web::resource...{}\n{}\n{}\n{}\n{}\n{}\n{}\n", title, author, publisher, isbn, pub_date, desc, contributor);
// Access