mirror of
https://github.com/logos-blockchain/logos-blockchain-simulations.git
synced 2026-01-02 13:13:07 +00:00
Ordering Experiments: Analysis Tools
This Python project contains scripts to draw plots and tables from the results of the ordering experiments.
Prerequisites
- Python 3
- Installing dependencies
python3 -m venv .venv
source .venv/bin/activate
pip isntall -r requirements.txt
Usages
Analyzing the latency results
The following command draws plots and tables from the latency results of the ordering experiments.
python latency.py <aggregated_csv_path> <output_dir>
aggregated_csv_path- A path to a CSV file that contains all statistical results of all experiments that must be shown in the plot and table.
- This script expects that the CSV file has at least the following columns.
paramset(int): Parameter Set IDqueue_type(str): Queue Type (NonMix, PureCoinFlipping, ...)latency_min,latency_meanandlatency_max(float)
output_dirA directory path where all PNG files of plots and tables are stored in
Analyzing the ordering coefficient results
The following command draws plots and tables from the ordering coefficient results of the ordering experiments.
python coeff.py <aggregated_csv_path> <output_dir>
aggregated_csv_path- A path to a CSV file that contains all statistical results of all experiments that must be shown in the plot and table.
- This script expects that the CSV file has at least the following columns.
paramset(int): Parameter Set IDqueue_type(str): Queue Type (NonMix, PureCoinFlipping, ...)strong_coeff_min,strong_coeff_meanandstrong_coeff_max(float)casual_coeff_min,casual_coeff_meanandcasual_coeff_max(float)weak_coeff_min,weak_coeff_meanandweak_coeff_max(float)
output_dirA directory path where all PNG files of plots and tables are stored in