项目作者: prongbang
项目描述 :
Loadtest Actix vs Fiber | Rust vs Golang
高级语言: Rust
项目地址: git://github.com/prongbang/actix-vs-fiber.git
Actix vs Fiber | Rust vs Golang
actix-api
$ cd actix-api
$ cargo run
$ wrk -c 10000 -d 60 -t 4 http://localhost:4000
Running 1m test @ http://localhost:4000
4 threads and 10000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 39.63ms 30.72ms 840.48ms 98.15%
Req/Sec 16.06k 4.19k 24.33k 83.81%
3764268 requests in 1.00m, 337.45MB read
Socket errors: connect 7450, read 34149, write 0, timeout 0
Requests/sec: 62633.90
Transfer/sec: 5.61MB
fiber-api
$ cd fiber-api
$ go run main.go
$ wrk -c 10000 -d 60 -t 4 http://localhost:3000
Running 1m test @ http://localhost:3000
4 threads and 10000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 264.51ms 132.56ms 1.99s 78.60%
Req/Sec 2.33k 1.06k 4.56k 59.65%
539230 requests in 1.00m, 2.65GB read
Socket errors: connect 7450, read 45176, write 0, timeout 0
Requests/sec: 8975.44
Transfer/sec: 45.18MB