Skip to content

prongbang/actix-vs-fiber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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