BenchTools#
A library for building and running benchmarks
Install#
You can install directly from github or after cloning
direct install#
pip install git+https://github.com/ml4sts/benchtools.git
By clone#
You can clone first
git clone https://github.com/ml4sts/benchtools.git
and then install
pip install benchtools
(possibly pip3)
if you clone in order to develop, you may want to install with pip’s -e option
pip install -e benchtools
To update, pull and install again.
Usage#
benchtools allows you to express templated tasks in multiple ways:
a yaml format listing the tasks with a values key
a folder for each task with txt file with template and a csv file of values for variations of the task
a benchmark can consist of tasks that all fit a single format above or a mixture of meta-tasks each represented as a folder and then the specific tasks in one of the forms above
The fastest way to get familiar is to install a demo, one in the yaml format (listbench) and one in the folder format (folderbench) as follows:
benchtool demo install -n BENCHMARK_NAME
You can also run at the same time.
benchtool demo install -n BENCHMARK_NAME -r