Benchmark tool for HTTP/SPDY over QUIC protocol written in Go. Originally forked from cmpxchg16's Gobench.
To build quicbench, you should build goquic's static library files.
Due to Go 1.4's cgo restrictions, use an environment variable like below to build your projects. This restriction will be removed from Go 1.5.
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/$GOOS_$GOARCH"
For example, building quicbench in Mac:
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/darwin_amd64" go build $GOPATH/github.com/devsisters/quicbench/quicbench.go
In Linux:
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/linux_amd64" go build $GOPATH/github.com/devsisters/quicbench/quicbench.go
-
run some quic supported server. You may use server implementation bundled in gospdyquic or toy server implementation in Chromium here
-
run quicbench for HTTP GET
$>go run quicbench.go -u http://localhost:80 -k=true -c 50 -r=10 -t 10
-
run quicbench for HTTP POST
$>go run quicbench.go -u http://localhost:80 -k=true -c 50 -r=10 -t 10 -d /tmp/post
-
build a binary:
$>go build gobench.go
-
Because it's a test tool, in HTTPS the ceritificate verification is insecure
-
use Go >= 1.1 (1.1 including major bug fixes)
-
quicbench creates one QUIC connection for each client and just create new stream for every request. If you want to create QUIC connection for every request, use -qk=false option.
go run gobench.go --help
Licensed under the New BSD License.
Originally written by Uri Shamay ([email protected])
QUIC protocol adopted by Brian Sung-Jin Hong ([email protected]) and Joonsung Lee ([email protected])