Skip to content
A simple HTTP server for benchmarking async runtimes
Rust
Branch: master
Clone or download
Latest commit 1234654 Dec 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src Update to futures 0.3 Nov 20, 2019
.gitignore Initial commit Aug 11, 2016
Cargo.toml Use tokio from the master branch Dec 11, 2019
LICENSE-APACHE Add forgotten license files Jun 13, 2017
LICENSE-MIT Add forgotten license files Jun 13, 2017
README.md Update README.md Dec 15, 2019

README.md

minihttp

This is a fork of tokio-minihttp ported to async-std and updated to to the latest version of tokio.

Note that tokio-minihttp is at the top of TechEmpower benchmarks.

This benchmark compares the performance of async runtimes at serving HTTP.

Usage

Start an async-std or tokio server by running one of the following two commands:

  • cargo run --release --example async-std
  • cargo run --release --example tokio

Start a benchmark by using either autocannon or wrk:

  • autocannon 0.0.0.0:8080/plaintext
  • wrk -t1 -c50 -d10 http://0.0.0.0:8080/plaintext
You can’t perform that action at this time.