Skip to content

Latest commit

 

History

History

benchmarks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Benchmarks

  • TCP Echo Server, one connection per coroutine (coio-tcp-echo-server.rs)

  • TCP Echo Server, one connection per thread (threaded-tcp-echo-server.rs)

  • TCP Echo Server, plain MIO with single thread (mio-tcp-echo-server.rs)

  • TCP Echo Server, standard Go implementation (go-tcp-echo-server.go)

OS X

Environment

  • OS X 10.11

  • 2.4 GHz Intel Core i5

  • 8 GB 1600 MHz DDR3

  • Rustc: rustc 1.5.0-nightly (130851e03 2015-10-03)

  • Go: go version go1.5.1 darwin/amd64

Configuration

  • Coio and Go servers are configured to run with 4 worker threads.

  • MIO server is running in a single thread

  • Run servers with

    • cargo run --bin coio-tcp-echo-server --release -- --bind 127.0.0.1:3000 -t 4

    • cargo run --bin threaded-tcp-echo-server --release -- --bind 127.0.0.1:3000

    • cargo run --bin mio-tcp-echo-server --release -- --bind 127.0.0.1:3000

    • GOMAXPROCS=4 go run src/go-tcp-echo-server.go

  • Run bench client with

    • go run tcp_bench.go -c 128 -t 30 -a "127.0.0.1:3000" -l 4096

    • Benchmark program is copied from mioco bench2.