Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Issue 7300075: code review 7300075: net/http: more request benchmarks (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by dave
Modified:
12 years, 4 months ago
Reviewers:
CC:
golang-dev, bradfitz, felixge
Visibility:
Public.

Description

net/http: more request benchmarks Add benchmarks for common http benchmarking tools. The intent is to catch optimisations which favor synthetic benchmarks that do not show improvements for real clients like Chrome. BenchmarkReadRequestChrome 200000 10133 ns/op 60.29 MB/s 3148 B/op 32 allocs/op BenchmarkReadRequestCurl 500000 4314 ns/op 18.08 MB/s 905 B/op 15 allocs/op BenchmarkReadRequestApachebench 500000 4363 ns/op 18.79 MB/s 956 B/op 16 allocs/op BenchmarkReadRequestSiege 500000 6408 ns/op 24.19 MB/s 1397 B/op 22 allocs/op BenchmarkReadRequestWrk 1000000 2838 ns/op 14.09 MB/s 757 B/op 11 allocs/op

Patch Set 1 #

Patch Set 2 : diff -r 7dc9a98ddfcc https://code.google.com/p/go #

Patch Set 3 : diff -r 7dc9a98ddfcc https://code.google.com/p/go #

Patch Set 4 : diff -r 7dc9a98ddfcc https://code.google.com/p/go #

Patch Set 5 : diff -r 7dc9a98ddfcc https://code.google.com/p/go #

Patch Set 6 : diff -r 9f7179fbede0 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -11 lines) Patch
M src/pkg/net/http/request_test.go View 1 2 3 4 3 chunks +40 lines, -11 lines 0 comments Download

Messages

Total messages: 5
dave_cheney.net
Hello golang-dev@googlegroups.com (cc: haimuiba@gmail.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 4 months ago (2013-02-09 00:31:09 UTC) #1
dave_cheney.net
To give some back story here, most of the benchmarking tools appear to use requests ...
12 years, 4 months ago (2013-02-09 00:37:49 UTC) #2
bradfitz
LGTM Sure. I'd drop the "const request" and inline the string literal. And drop the ...
12 years, 4 months ago (2013-02-09 01:14:09 UTC) #3
dave_cheney.net
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com, haimuiba@gmail.com), Please take another look.
12 years, 4 months ago (2013-02-09 07:55:58 UTC) #4
dave_cheney.net
12 years, 4 months ago (2013-02-09 21:18:25 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=5c213525c4b5 ***

net/http: more request benchmarks

Add benchmarks for common http benchmarking tools. The intent is to catch
optimisations which favor synthetic benchmarks that do not show improvements for
real clients like Chrome.

BenchmarkReadRequestChrome        200000             10133 ns/op          60.29
MB/s        3148 B/op         32 allocs/op
BenchmarkReadRequestCurl          500000              4314 ns/op          18.08
MB/s         905 B/op         15 allocs/op
BenchmarkReadRequestApachebench   500000              4363 ns/op          18.79
MB/s         956 B/op         16 allocs/op
BenchmarkReadRequestSiege         500000              6408 ns/op          24.19
MB/s        1397 B/op         22 allocs/op
BenchmarkReadRequestWrk          1000000              2838 ns/op          14.09
MB/s         757 B/op         11 allocs/op

R=golang-dev, bradfitz
CC=golang-dev, haimuiba
https://codereview.appspot.com/7300075
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b