diff --git a/README.md b/README.md index a5ca629..1cac43b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,17 @@ +[![Build Status](https://travis-ci.org/valyala/fasthttp.svg)](https://travis-ci.org/valyala/fasthttp) +[![Documentation](https://godoc.org/github.com/valyala/fasthttp?status.svg)](http://godoc.org/github.com/valyala/fasthttp) + # fasthttp Fast HTTP implementation for Go. Currently fasthttp is successfully used in a production serving 100K rps from 1M concurrent keep-alive connections on a single server. -[![Build Status](https://travis-ci.org/valyala/fasthttp.svg)](https://travis-ci.org/valyala/fasthttp) +[TechEmpower Benchmark round 12 results](https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=plaintext) + +[Server Benchmarks](#http-server-performance-comparison-with-nethttp) + +[Client Benchmarks](#http-client-comparison-with-nethttp) [Documentation](https://godoc.org/github.com/valyala/fasthttp) @@ -22,9 +29,10 @@ concurrent keep-alive connections on a single server. # HTTP server performance comparison with [net/http](https://golang.org/pkg/net/http/) -In short, fasthttp server is up to 10 times faster than net/http. Below are benchmark results. +In short, fasthttp server is up to 10 times faster than net/http. +Below are benchmark results. -GOMAXPROCS=1 +*GOMAXPROCS=1* net/http server: ``` @@ -54,7 +62,7 @@ BenchmarkServerGet10ReqPerConn10KClients 5000000 1297 ns/op 1 B/o BenchmarkServerGet100ReqPerConn10KClients 10000000 1264 ns/op 9 B/op 0 allocs/op ``` -GOMAXPROCS=4 +*GOMAXPROCS=4* net/http server: ``` @@ -86,9 +94,10 @@ BenchmarkServerGet100ReqPerConn10KClients-4 20000000 384 ns/op 4 B # HTTP client comparison with net/http -In short, fasthttp client is up to 10 times faster than net/http. Below are benchmark results. +In short, fasthttp client is up to 10 times faster than net/http. +Below are benchmark results. -GOMAXPROCS=1 +*GOMAXPROCS=1* net/http client: ``` @@ -118,7 +127,7 @@ BenchmarkClientGetEndToEnd100Inmemory 2000000 3885 ns/op 0 B/op BenchmarkClientGetEndToEnd1000Inmemory 2000000 3907 ns/op 7 B/op 0 allocs/op ``` -GOMAXPROCS=4 +*GOMAXPROCS=4* net/http client: ```