An open API service indexing awesome lists of open source software.

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

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
```