Commit 66cb2d9b authored by Jakub Klemsa's avatar Jakub Klemsa
Browse files

Prepared batch-mode scripts for pi = 7.

parent 0c5393ce
......@@ -17,11 +17,8 @@ PLOT_WIDTH_PER_PARAMS = 130
#~ QW = ARGV[2].to_i
#~ MODE = ARGV[3].to_sym
#~ LAMBDAs = [80, 128]
#~ PIs = [2, 3, 4, 5, 6, 7]
#~ QWs = [5]
LAMBDAs = [80, 128]
PIs = [2, 3, 4, 5, 6]
PIs = [2, 3, 4, 5, 6, 7]
QWs = [5, 10, 20]
# output dirs & files
......@@ -114,7 +111,7 @@ puts "(i) Results written to '#{path_dat}'."
# run gnuplot script
plot_width = PLOT_WIDTH_PER_PARAMS * (PIs.size + 2)
y_tics = worst_time > 100 ? 10 : 5
y_tics = worst_time > 100 ? 20 : 10
#TODO read n_runs
#TODO multi-lambda support
system "gnuplot -c multiplot.sh #{path_dat} #{path_png} #{plot_width} #{-1} #{y_tics} #{QWs.size}"
......
......@@ -9,63 +9,13 @@ WID = ARG3
NRUNS = ARG4
YTICS = ARG5
QWS = ARG6
#~ RES = 'sample.dat'
#~ OUT = 'sample.png'
#~ WID = 1800
# for fakubitsu, 1/3e6 ~ 0.33/1e6
# for argentera, 1/2.5e6 = 0.40/1e6
#~ KS_RATIO = 0.40/1e6 # good
KS_RATIO = 0.37/1e6 # good
# for argentera:
#~ BR_RATIO_1 = 0.99/1e6 # good
#~ BR_RATIO_2 = 0.65/1e6 # good
#~ BR_RATIO_3 = 0.54/1e6 # good
#~ BR_RATIO_4 = 0.49/1e6 # good
#~ BR_RATIO_5 = 0.46/1e6 # good
#~ BR_RATIO_6 = 0.43/1e6 # !!
#~ BR_RATIO_7 = 0.41/1e6 # good
#~ BR_RATIO_8 = 0.40/1e6 # good
#~ BR_RATIO_9_13 = 0.38/1e6 # !!
#~ BR_RATIO_14 = 0.365/1e6 # good
#~ BR_RATIO_15 = 0.362/1e6 # good
#~ BR_RATIO_DEF = 0.36/1e6 # good for 16
# for argentera (updated):
BR_RATIO_1 = 1.01/1e6 # good
BR_RATIO_2 = 0.68/1e6 # good
BR_RATIO_3 = 0.56/1e6 # good
BR_RATIO_4 = 0.51/1e6 # good
BR_RATIO_5 = 0.475/1e6 # good
BR_RATIO_6 = 0.455/1e6 # !!
BR_RATIO_7 = 0.44/1e6 # good
BR_RATIO_8 = 0.425/1e6 # good
BR_RATIO_9_13 = 0.405/1e6 # !!
BR_RATIO_14 = 0.390/1e6 # good
BR_RATIO_15 = 0.385/1e6 # good
BR_RATIO_DEF = 0.382/1e6 # good for 16
bs_ratio(l) = l==1 ? BR_RATIO_1 : \
(l==2 ? BR_RATIO_2 : \
(l==3 ? BR_RATIO_3 : \
(l==4 ? BR_RATIO_4 : \
(l==5 ? BR_RATIO_5 : \
(l==6 ? BR_RATIO_6 : \
(l==7 ? BR_RATIO_7 : \
(l==8 ? BR_RATIO_8 : \
(l<14 ? BR_RATIO_9_13 : \
(l==14? BR_RATIO_14 : \
(l==15? BR_RATIO_15 : \
BR_RATIO_DEF))))))))))
RATIO_WID = 0.04
MAX_L = 16
set term pngcairo dashed size WID,900
set term pngcairo dashed size WID,700
set out OUT
set multiplot layout QWS, 1 margins 0.045,1.0,0.05,0.99 spacing 0,0.03
set multiplot layout QWS, 1 margins 0.045,1.0,0.07,1.0 spacing 0,0.03
#~ set x2tics font ",10"
set ytics YTICS font ",10"
......@@ -78,7 +28,7 @@ set key left top
set style fill solid 0.6 noborder
set boxwidth 0.8
set xrange [1.5:6.5]
set xrange [1.5:7.5]
set yrange [0:150]
#TODO resolve for multiplot
......
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