Execute a battery of benchmarks for PyCTBN 🐍📊⏱️
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Meliurwen 09a9d6b221
Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use
2 years ago
deps First working version 2 years ago
.gitignore Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use 2 years ago
.gitmodules First working version 2 years ago
README.md Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use 2 years ago
benchmark.py Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use 2 years ago
requirements.txt Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use 2 years ago
run.sh Added requirements file, added batch benchmarking script, added README, added ability to set number of processes to use 2 years ago

README.md

pyCTBN - Benchmarks

This benchmark is tailored to work with the "modernized" and polished version of pyCTBN.

Preparation

To clone with all submodules:

git clone --recursive git@git-service.tld:user/repo.git

If you cloned without --recursive, you probably want to initialize the submodules:

git submodule update --init --recursive

Create a virtual environment:

python3 -m venv .venv && source .venv/bin/activate

Install the dependencies:

pip3 install -r requirements.txt

Usage

Create a networks.d directory in this project workspace.

Move the json files of the networks in the just created networks.d directory.

Execute the shell script ./run.sh to run the tests contained in the networks.d directory:

./run.sh

To learn to use directly the benchmark program:

./benchmark.py --help