Commit aaeaa80d authored by Roberto Cavicchioli's avatar Roberto Cavicchioli

Added python script for jitter chart

parent c7c16346
......@@ -6,7 +6,7 @@ ITERS=(1 2 5 10 20 50 100 200 500 1000 2000)
SIZES=(1 2 4 8)
SUBMISSIONS=(baseline CNP graph vulkan)
MEASUREMENTS=(sub exe)
RUNS=100
RUNS=500
echo "Gathering data. Please wait, this will take a while"
......
......@@ -11,6 +11,10 @@ echo "Run tests"
./tests.sh
echo "Aggregate results"
./aggregate.sh
sudo apt-get install -y python-pip
sudo pip install numpy
sudo pip install pandas
python table_jitter.py > jitter.csv
echo "Installing latex to create charts"
sudo apt-get install -y texlive-latex-base texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra
echo "Create charts"
......
from __future__ import print_function
import pandas as pd
df = pd.read_csv('results_artifact.csv', sep=' ', index_col=False)
length = [1,2,5,10,20,50,100,200,500,1000,2000]
sizes = [1]
submission = ["baseline","CNP","graph","vulkan"]
measure = ["sub"]
headers = list(df.columns.values)
for k in sizes:
for mes in measure:
for l in length:
print(str(l), end='')
for sub in submission:
colname = sub+":"+mes+":i"+str(l)+":s"+str(k)
print("\t" +str(df.iloc[:,headers.index(colname)].max() - df.iloc[:,headers.index(colname)].min()), end='')
print("")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment