Evaluation scripts and images
This commit is contained in:
@ -18,7 +18,7 @@ input_file = ARGS[1]
|
||||
df = CSV.read(input_file, DataFrame)
|
||||
|
||||
# plotting with process size as x axis
|
||||
THREADS = [4]
|
||||
THREADS = []
|
||||
|
||||
for threads in THREADS
|
||||
title_string = "n-photon Compton diagram generation, $threads threads"
|
||||
@ -145,4 +145,39 @@ for threads in THREADS
|
||||
|
||||
savefig("compton_graph_size_versus.pdf")
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
# for a specific process, plot times with threads as x
|
||||
process = "ke->kkkkkkkke"
|
||||
title_string = "n-photon Compton diagram generation times, $process"
|
||||
|
||||
df_filt = filter(:process_name => x -> x == process, df)
|
||||
df_filt.graph_gen_mean = @. df_filt.graph_gen_mean / 1e9
|
||||
df_filt.graph_gen_std = @. df_filt.graph_gen_std / 1e9
|
||||
|
||||
@df df_filt scatter(
|
||||
:cpu_threads,
|
||||
:graph_gen_mean,
|
||||
yerror = :graph_gen_std,
|
||||
label = "graph generation time",
|
||||
markersize = 7,
|
||||
)
|
||||
|
||||
plot!(
|
||||
title = title_string,
|
||||
yscale = :linear,
|
||||
legend = :outerbottom,
|
||||
minorgrid = true,
|
||||
xticks = :cpu_threads,
|
||||
#yticks = [1e-3, 1e-2, 1e-1, 1e-0, 1e1],
|
||||
ylim = (0, max(df_filt[!, :graph_gen_mean]...) * 1.1),
|
||||
xgrid = false,
|
||||
xminorticks = false,
|
||||
legendcolumns = 1,
|
||||
legend_font_pointsize = 10,
|
||||
size = (800, 600),
|
||||
ylabel = "time (s)",
|
||||
xlabel = "process size (#)",
|
||||
)
|
||||
|
||||
savefig("gen_times_$(process).pdf")
|
Reference in New Issue
Block a user