bench: fix buffers/buffer-base64-encode benchmark
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 4 Jun 2014 13:25:09 +0000 (15:25 +0200)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 4 Jun 2014 21:37:27 +0000 (14:37 -0700)
commit8ae32a98642fdb1cf9187c67fe0050129f6a5216
tree60c3c07305208c6f64b289be4ed680290a667acb
parent820aaf5b3d2728d900ba0ff8903d343840766912
bench: fix buffers/buffer-base64-encode benchmark

The test is supposed to measure the performance of the base64 encoder
so move the Buffer#write() calls out of the benchmark section.

The overhead of the calls isn't terrible (about 1-3%) but having
unrelated activity in a micro-benchmark is never a good idea.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
benchmark/buffers/buffer-base64-encode.js