simplebench: bench_one(): support count=1
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 28 Jan 2021 15:13:48 +0000 (18:13 +0300)
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 4 May 2021 08:37:26 +0000 (11:37 +0300)
commit27eacb390e289edde4854f8bdface596572b0d8d
treed705b588319179cb532a5c3b9c3fc561c9f76d9c
parentdab346986e1e91dfd28671e9fb97970a9eb15fca
simplebench: bench_one(): support count=1

statistics.stdev raises if sequence length is less than two. Support
that case by hand.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
scripts/simplebench/simplebench.py