Commit Graph

2 Commits (f65a5cbcde51ef7da0ff5617dcab1a164b9a217b)

Author SHA1 Message Date
Ben Noordhuis 8ae32a9864 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>
2014-06-04 14:37:27 -07:00
isaacs cc38528acf bench: buffer-base64-encode 2013-02-19 14:14:32 -08:00