https://github.com/prongbang/actix-vs-fiber
Loadtest Actix vs Fiber | Rust vs Golang
https://github.com/prongbang/actix-vs-fiber
actix actix-web fiber gofiber loadtest rust rust-lang
Last synced: 11 months ago
JSON representation
Loadtest Actix vs Fiber | Rust vs Golang
- Host: GitHub
- URL: https://github.com/prongbang/actix-vs-fiber
- Owner: prongbang
- Created: 2021-04-16T15:52:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T16:44:26.000Z (about 5 years ago)
- Last Synced: 2025-07-19T11:08:46.593Z (11 months ago)
- Topics: actix, actix-web, fiber, gofiber, loadtest, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Actix vs Fiber | Rust vs Golang
## actix-api
- Run
```
$ cd actix-api
$ cargo run
```
- Loadtest
```
$ 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
- Run
```
$ cd fiber-api
$ go run main.go
```
- Loadtest
```
$ 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
```