tbarbette / npf

Network Performance Framework: easy-to-use experiment manager with automated testing, result collection, and graphing
GNU General Public License v3.0
40 stars 15 forks source link

Pandas support #8

Closed aliireza closed 4 years ago

aliireza commented 4 years ago

This patch will make a Pandas dataframe from all_results and print it in a CSV format, which can be loaded later for post-processing.

I tried with the following testie file and it worked:

%config n_runs=2

%variables NUMBER_1=[5-8] NUMBER_2=[1-5] NUMBER_3=[20-22] test={hi,bye}

%script ADD=$(echo "$NUMBER_1 + $NUMBER_2" | bc) MULT=$(echo "$NUMBER_1 * $NUMBER_2" | bc) echo "RESULT-ADDITION $ADD" echo "RESULT-MULT $MULT"

tbarbette commented 4 years ago

It would be great to add a runtime flag to enable it, such as "--panda [path]"

aliireza commented 4 years ago

I am checking it now with ddio-bench.

If it works, I will add the flag ;)

aliireza commented 4 years ago

I updated the README for --pandas and added one example to process it.

tbarbette commented 4 years ago

Great, thanks! I'll merge in like this, but I think the file will get overwritten fi there are multiple series. We can fix that later though.

aliireza commented 4 years ago

Thanks :) I think they will be added to the data frame as long as different series have different build tag. Otherwise, we cannot really distinguish them. We can fix it later if you notice something.