commands: Make benchmark command more useful
authorAlbert Nigmatzianov <albertnigma@gmail.com>
Fri, 18 Nov 2016 23:06:54 +0000 (00:06 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Nov 2016 23:06:54 +0000 (00:06 +0100)
commit29fda0e6830cd62667fb2e12627b8b9874bfafdf
treec2e72dad36d9316d9999e4be7ce9b797c23bb50b
parent7b8a09d5f95391877e3fcee7f1b0e4648050f30f
commands: Make benchmark command more useful

* Add information about average time, memory consumption and
allocations.
* Fix situation, when user provides memprofile and cpuprofile, but
cpuprofile will not created.

Fixes #2432
commands/benchmark.go