README.md 1.73 KB
Newer Older
Sami Evangelista's avatar
Sami Evangelista committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# sbench


## description

sbench is a simple benchmarking tool written in python


## license

sbench is published under the term of
[GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt)


## installation

install sbench with the `setup.py` script

```
python setup.py install --user
```


## usage

```
Sami Evangelista's avatar
Sami Evangelista committed
27
usage: sbench [-h] [-a {run,stats,extract,show,delete,zip,unzip}]
Sami Evangelista's avatar
Sami Evangelista committed
28
29
              [-z ZIP_FILE] [-n HANDLER] [-r] [-v] [-V] [-f FILTER] [-t] [-e]
              [--force]
Sami Evangelista's avatar
Sami Evangelista committed
30
              json
Sami Evangelista's avatar
Sami Evangelista committed
31
32
33
34
35
36
37
38

simple benchmarking tool

positional arguments:
  json                  json file of the benchmark to process

optional arguments:
  -h, --help            show this help message and exit
Sami Evangelista's avatar
Sami Evangelista committed
39
  -a {run,stats,extract,show,delete,zip,unzip}, --action {run,stats,extract,show,delete,zip,unzip}
Sami Evangelista's avatar
Sami Evangelista committed
40
                        set action to perform
Sami Evangelista's avatar
Sami Evangelista committed
41
42
  -z ZIP_FILE, --zip-file ZIP_FILE
                        (with options `-a zip` or `-a unzip`) output zip file
Sami Evangelista's avatar
Sami Evangelista committed
43
  -n HANDLER, --handler HANDLER
Sami Evangelista's avatar
Sami Evangelista committed
44
45
                        (with option `-a extract`) set the command that will
                        be used to extract each test to CSV data
Sami Evangelista's avatar
Sami Evangelista committed
46
  -r, --random          (with option `-a run`) randomize tests
Sami Evangelista's avatar
Sami Evangelista committed
47
  -v, --verbose         be verbose
Sami Evangelista's avatar
Sami Evangelista committed
48
49
50
  -V, --version         print the version number and exit
  -f FILTER, --filter FILTER
                        add a filter expression
Sami Evangelista's avatar
Sami Evangelista committed
51
52
53
54
  -t, --rerun-timeouts  (with option `-a run`) rerun tests that ended with a
                        timeout during a previous execution of sbench
  -e, --rerun-errors    (with option `-a run`) rerun tests that ended with an
                        error during a previous execution of sbench
Sami Evangelista's avatar
Sami Evangelista committed
55
56
  --force               (with option `-a delete`) do not prompt the user and
                        force the deletion of test data
Sami Evangelista's avatar
Sami Evangelista committed
57

Sami Evangelista's avatar
Sami Evangelista committed
58
```