diff options
| author | Dave Cheney <dave@cheney.net> | 2013-02-09 07:04:07 +1100 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2013-02-09 07:04:07 +1100 |
| commit | cccc96b8e9f2e526d7b22cfc4af17569c47e8c31 (patch) | |
| tree | 801fc3c9e39af25dbfa70017cb6ef584b3aa46ec /src/pkg/runtime/hashmap.c | |
| parent | d2252d9b0769867fa8a25ba8b274603ddf21c9e9 (diff) | |
| download | go-cccc96b8e9f2e526d7b22cfc4af17569c47e8c31.tar.xz | |
net/http: add BenchmarkReadRequest
Add benchmark for request parsing. Fixture data is taken from https://github.com/felixge/node-http-perf
% go version
go version devel +28966b7b2f0c Thu Feb 07 20:26:12 2013 -0800 linux/amd64
% go test -run=nil -bench=ReadRequest -benchtime=10s
PASS
BenchmarkReadRequest 2000000 9900 ns/op 61.71 MB/s 3148 B/op 32 allocs/op
ok net/http 12.180s
R=golang-dev, bradfitz, minux.ma, haimuiba
CC=golang-dev
https://golang.org/cl/7313048
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
0 files changed, 0 insertions, 0 deletions
