fix glob of files for percentiles

This commit is contained in:
jean-philippe bempel 2020-04-22 14:47:06 +02:00
parent 5bddaa97c8
commit eae4ee007b
3 changed files with 4 additions and 3 deletions

View file

@ -60,7 +60,7 @@ function bench () {
pkill -P $PID
sleep 1
done
python percentiles.py ${TAG}-${JDK}.csv results_${TAG}-${JDK}-*.csv
python percentiles.py ${TAG}-${JDK}.csv results_${TAG}-${JDK}-?.csv
}
function checks () {

View file

@ -12,7 +12,8 @@ def get_percentile(percentile, values):
latencies = []
percentiles = []
with open(output_filename, "w") as output_file:
output_file.write(','.join(input_files) + '\n')
headers = [input_file.replace('results_', '').replace('.csv', '') for input_file in input_files]
output_file.write(','.join(headers) + '\n')
for input_filename in input_files:
with open(input_filename) as input_file:
for line in input_file:

View file

@ -20,7 +20,7 @@ if [ "$2" == "jdk8dev" ];
then
export JAVA_HOME=../../jdk/jdk8dev
fi
if [ "$2" == "" ];
if [ "$2" == "jdk11" ];
then
export JAVA_HOME=../../jdk/jdk-11.0.7+10
fi