Add Timings per Phreeqc
This commit is contained in:
parent
1dc5942b75
commit
492f8277ab
55
eval_phreeqc_per_it.jl
Normal file
55
eval_phreeqc_per_it.jl
Normal file
@ -0,0 +1,55 @@
|
||||
using CSV, DataFrames, Statistics, Base.cumsum
|
||||
|
||||
function read_csvs(csv_files)
|
||||
full_vec = []
|
||||
for file in csv_files
|
||||
vec = (CSV.File(file; header=false)|>Tables.matrix)[1, 1:end-1]
|
||||
push!(full_vec, vec)
|
||||
end
|
||||
|
||||
return hcat(full_vec...)
|
||||
end
|
||||
|
||||
input_dir = "per_phreeqc/"
|
||||
csv_files = readdir(input_dir, join=true)
|
||||
csv_files = filter(x -> occursin(r"worker_timings_\d+.csv", x), csv_files)
|
||||
|
||||
mat = read_csvs(csv_files)
|
||||
|
||||
# calculate the mean of each row
|
||||
mean_vec = vec(mean(mat; dims=2))
|
||||
|
||||
mean_intervalls = collect(0:1000:5000)
|
||||
|
||||
# calculate the mean of each intervall
|
||||
mean_cummulative = [mean(@view mean_vec[mean_intervalls[i]+1:mean_intervalls[i+1]])
|
||||
for i in 1:length(mean_intervalls)-1] .* 1e3
|
||||
|
||||
using Plots
|
||||
|
||||
p = plot(mean_vec .* 1e3,
|
||||
xlabel="Iteration",
|
||||
ylabel="Runimte [ms]",
|
||||
xguidefontsize=8,
|
||||
yguidefontsize=8,
|
||||
xtickfontsize=6,
|
||||
ytickfontsize=6,
|
||||
legend=false,
|
||||
formatter=:plain,
|
||||
yminorgrid=true,
|
||||
ylimits=(0, 16),
|
||||
yticks=collect(0:2:16),
|
||||
yminorticks=4,
|
||||
linecolor=:black,
|
||||
)
|
||||
|
||||
for i in 1:length(mean_intervalls)-1
|
||||
plot!(p, [mean_intervalls[i]; mean_intervalls[i+1]], [mean_cummulative[i]; mean_cummulative[i]],
|
||||
linecolor=:red,
|
||||
linewidth=1,
|
||||
)
|
||||
end
|
||||
|
||||
display(p)
|
||||
|
||||
savefig(p, "phreeeqc_per_iteration_barite.pdf")
|
||||
1
per_phreeqc/worker_timings_1.csv
Normal file
1
per_phreeqc/worker_timings_1.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_10.csv
Normal file
1
per_phreeqc/worker_timings_10.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_100.csv
Normal file
1
per_phreeqc/worker_timings_100.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_101.csv
Normal file
1
per_phreeqc/worker_timings_101.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_102.csv
Normal file
1
per_phreeqc/worker_timings_102.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_103.csv
Normal file
1
per_phreeqc/worker_timings_103.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_104.csv
Normal file
1
per_phreeqc/worker_timings_104.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_105.csv
Normal file
1
per_phreeqc/worker_timings_105.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_106.csv
Normal file
1
per_phreeqc/worker_timings_106.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_107.csv
Normal file
1
per_phreeqc/worker_timings_107.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_108.csv
Normal file
1
per_phreeqc/worker_timings_108.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_109.csv
Normal file
1
per_phreeqc/worker_timings_109.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_11.csv
Normal file
1
per_phreeqc/worker_timings_11.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_110.csv
Normal file
1
per_phreeqc/worker_timings_110.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_111.csv
Normal file
1
per_phreeqc/worker_timings_111.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_112.csv
Normal file
1
per_phreeqc/worker_timings_112.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_113.csv
Normal file
1
per_phreeqc/worker_timings_113.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_114.csv
Normal file
1
per_phreeqc/worker_timings_114.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_115.csv
Normal file
1
per_phreeqc/worker_timings_115.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_116.csv
Normal file
1
per_phreeqc/worker_timings_116.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_117.csv
Normal file
1
per_phreeqc/worker_timings_117.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_118.csv
Normal file
1
per_phreeqc/worker_timings_118.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_119.csv
Normal file
1
per_phreeqc/worker_timings_119.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_12.csv
Normal file
1
per_phreeqc/worker_timings_12.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_120.csv
Normal file
1
per_phreeqc/worker_timings_120.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_121.csv
Normal file
1
per_phreeqc/worker_timings_121.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_122.csv
Normal file
1
per_phreeqc/worker_timings_122.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_123.csv
Normal file
1
per_phreeqc/worker_timings_123.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_124.csv
Normal file
1
per_phreeqc/worker_timings_124.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_125.csv
Normal file
1
per_phreeqc/worker_timings_125.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_126.csv
Normal file
1
per_phreeqc/worker_timings_126.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_127.csv
Normal file
1
per_phreeqc/worker_timings_127.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_128.csv
Normal file
1
per_phreeqc/worker_timings_128.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_129.csv
Normal file
1
per_phreeqc/worker_timings_129.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_13.csv
Normal file
1
per_phreeqc/worker_timings_13.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_130.csv
Normal file
1
per_phreeqc/worker_timings_130.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_131.csv
Normal file
1
per_phreeqc/worker_timings_131.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_132.csv
Normal file
1
per_phreeqc/worker_timings_132.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_133.csv
Normal file
1
per_phreeqc/worker_timings_133.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_134.csv
Normal file
1
per_phreeqc/worker_timings_134.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_135.csv
Normal file
1
per_phreeqc/worker_timings_135.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_136.csv
Normal file
1
per_phreeqc/worker_timings_136.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_137.csv
Normal file
1
per_phreeqc/worker_timings_137.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_138.csv
Normal file
1
per_phreeqc/worker_timings_138.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_139.csv
Normal file
1
per_phreeqc/worker_timings_139.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_14.csv
Normal file
1
per_phreeqc/worker_timings_14.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_140.csv
Normal file
1
per_phreeqc/worker_timings_140.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_141.csv
Normal file
1
per_phreeqc/worker_timings_141.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_142.csv
Normal file
1
per_phreeqc/worker_timings_142.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_143.csv
Normal file
1
per_phreeqc/worker_timings_143.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_144.csv
Normal file
1
per_phreeqc/worker_timings_144.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_145.csv
Normal file
1
per_phreeqc/worker_timings_145.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_146.csv
Normal file
1
per_phreeqc/worker_timings_146.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_147.csv
Normal file
1
per_phreeqc/worker_timings_147.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_148.csv
Normal file
1
per_phreeqc/worker_timings_148.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_149.csv
Normal file
1
per_phreeqc/worker_timings_149.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_15.csv
Normal file
1
per_phreeqc/worker_timings_15.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_150.csv
Normal file
1
per_phreeqc/worker_timings_150.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_151.csv
Normal file
1
per_phreeqc/worker_timings_151.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_152.csv
Normal file
1
per_phreeqc/worker_timings_152.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_153.csv
Normal file
1
per_phreeqc/worker_timings_153.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_154.csv
Normal file
1
per_phreeqc/worker_timings_154.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_155.csv
Normal file
1
per_phreeqc/worker_timings_155.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_156.csv
Normal file
1
per_phreeqc/worker_timings_156.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_157.csv
Normal file
1
per_phreeqc/worker_timings_157.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_158.csv
Normal file
1
per_phreeqc/worker_timings_158.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_159.csv
Normal file
1
per_phreeqc/worker_timings_159.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_16.csv
Normal file
1
per_phreeqc/worker_timings_16.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_160.csv
Normal file
1
per_phreeqc/worker_timings_160.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_161.csv
Normal file
1
per_phreeqc/worker_timings_161.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_162.csv
Normal file
1
per_phreeqc/worker_timings_162.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_163.csv
Normal file
1
per_phreeqc/worker_timings_163.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_164.csv
Normal file
1
per_phreeqc/worker_timings_164.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_165.csv
Normal file
1
per_phreeqc/worker_timings_165.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_166.csv
Normal file
1
per_phreeqc/worker_timings_166.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_167.csv
Normal file
1
per_phreeqc/worker_timings_167.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_168.csv
Normal file
1
per_phreeqc/worker_timings_168.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_169.csv
Normal file
1
per_phreeqc/worker_timings_169.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_17.csv
Normal file
1
per_phreeqc/worker_timings_17.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_170.csv
Normal file
1
per_phreeqc/worker_timings_170.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_171.csv
Normal file
1
per_phreeqc/worker_timings_171.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_172.csv
Normal file
1
per_phreeqc/worker_timings_172.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_173.csv
Normal file
1
per_phreeqc/worker_timings_173.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_174.csv
Normal file
1
per_phreeqc/worker_timings_174.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_175.csv
Normal file
1
per_phreeqc/worker_timings_175.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_176.csv
Normal file
1
per_phreeqc/worker_timings_176.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_177.csv
Normal file
1
per_phreeqc/worker_timings_177.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_178.csv
Normal file
1
per_phreeqc/worker_timings_178.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_179.csv
Normal file
1
per_phreeqc/worker_timings_179.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_18.csv
Normal file
1
per_phreeqc/worker_timings_18.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_180.csv
Normal file
1
per_phreeqc/worker_timings_180.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_181.csv
Normal file
1
per_phreeqc/worker_timings_181.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_182.csv
Normal file
1
per_phreeqc/worker_timings_182.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_183.csv
Normal file
1
per_phreeqc/worker_timings_183.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_184.csv
Normal file
1
per_phreeqc/worker_timings_184.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_185.csv
Normal file
1
per_phreeqc/worker_timings_185.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_186.csv
Normal file
1
per_phreeqc/worker_timings_186.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_187.csv
Normal file
1
per_phreeqc/worker_timings_187.csv
Normal file
File diff suppressed because one or more lines are too long
1
per_phreeqc/worker_timings_188.csv
Normal file
1
per_phreeqc/worker_timings_188.csv
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user