Fix benchmark so the buffer is read each time.
authorNoah Campbell <noahcampbell@gmail.com>
Tue, 20 Aug 2013 23:56:18 +0000 (16:56 -0700)
committerNoah Campbell <noahcampbell@gmail.com>
Fri, 23 Aug 2013 21:16:37 +0000 (14:16 -0700)
commit7461ed63ae61aca0f49a36cc8a69ed8594fbcf64
treebb374b1a16298626794ac6c14925ef48bd2d1202
parent599e6672f748c19bf6b11481736061be7a03c762
Fix benchmark so the buffer is read each time.

The bytes.Buffer was exhausted after the first read.  Creating a new
reader each invocation catpures the correctly timing.
hugolib/benchmark_test.go