scripts/simplebench: add example usage of simplebench
commit28c4992adf18f0da43d088f6dec7fa3e7730a032
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 28 Feb 2020 07:19:13 +0000 (28 10:19 +0300)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 18 Mar 2020 01:09:26 +0000 (17 21:09 -0400)
tree9c8bf3694ce68a7b96c6692fdb48e0a696a3a7a5
parent3e36da64b8c7520658926e65cdd499baa42f523a
scripts/simplebench: add example usage of simplebench

This example may be used as a template for custom benchmark.
It illustrates three things to prepare:
 - define bench_func
 - define test environments (columns)
 - define test cases (rows)
And final call of simplebench API.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <20200228071914.11746-4-vsementsov@virtuozzo.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/simplebench/bench-example.py [new file with mode: 0644]