]> Cypherpunks repositories - gostls13.git/commit
net/textproto: redo BenchmarkReadMIMEHeader
authorTravis Bischel <travis.bischel@gmail.com>
Sun, 9 Sep 2018 21:45:34 +0000 (14:45 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 27 Sep 2018 19:58:04 +0000 (19:58 +0000)
commit6a6f4a46536e9b2fb2bfb825269d6bd5e823fe8f
tree293bd61bfd90baaaa001d0fa02068c772f9bd0e0
parent06afc8b152bc01e1b4f5dce074bae531dd29a9b9
net/textproto: redo BenchmarkReadMIMEHeader

This benchmark is odd currently because it uses inconsistent cases
between benchmark iterations, and each iteration actually does a bit of
testing.

This separates the two benchmark cases into two separate benchmarks and
removes the testing done on each iteration. The unit tests above
suffice.

The benchmark being more succinct will make it easier to gauge the
benefits of any future MIME header reading changes.

Change-Id: I2399fab28067f1aeec3d9b16951d39d787f8b39c
Reviewed-on: https://go-review.googlesource.com/134225
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/textproto/reader_test.go