Skip to content

Commit

Permalink
Improves bench and chair. Allocs still need to be done
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed Jun 8, 2024
1 parent 3755c95 commit cdcb050
Show file tree
Hide file tree
Showing 37 changed files with 10,082 additions and 9 deletions.
13 changes: 12 additions & 1 deletion ext/MakieExt/allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,22 @@ function PerfChecker.checkres_to_scatterlines(
ax.ylabel = "bytes"
colors = make_colors(length(keys(di)))
i = 1

lx = length(versionnums)
ly = length(keys(di))
step = 0.02 * (lx - 1)
diff = (1 - ly) * step / 2.0

@info "Plotting allocations" lx ly step diff

for (keys, values) in di
xs = [values[i][1] for i in eachindex(values)]
xs = [values[i][1] for i in eachindex(values)] .+ diff
ys = [versions[values[i][2]] for i in eachindex(values)]
scatterlines!(f[1, 1], ys, xs, label = keys, color = (colors[i], 0.6))
i += 1
diff += step

@info "Plotting allocations" xs ys
end
ax.title = x.pkgs[1].name
Legend(f[1, 2], ax)
Expand Down
14 changes: 10 additions & 4 deletions ext/MakieExt/bench.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,29 @@ function PerfChecker.checkres_to_scatterlines(
ax = f[1, 1] = Axis(f)
colors = make_colors(length(props))
max = 2
diff = 0.0

lx = length(versionnums)
ly = length(data[1])
step = 0.02 * (lx - 1)
diff = (1 - ly) * step / 2.0

for i in eachindex(data[1])
xs = collect(eachindex(versionnums)) .+ diff
ys = [isempty(v[i]) ? 0 : d[i][j] / r[i] for j in eachindex(d[i])]
t = maximum(ys)
if max < ϵ(t)
max = ϵ(t)
end
scatterlines!(xs, ys, label = string(props[i]), color = (colors[i], 0.4))
diff += 0.1 / length(xs)
scatterlines!(
xs, ys; label = string(props[i]), color = (colors[i], 1.0), linewidth = 0.5)
diff += step
end
ax.yscale = Makie.pseudolog10
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = "ratio"
ax.title = "Evolution for $(x.pkgs[1].name) (via BenchmarkTools.jl)"
ylims!(; high = max)
# ylims!(; high = max)
f[1, 2] = Legend(f, ax)
return f
end
Expand Down
14 changes: 10 additions & 4 deletions ext/MakieExt/chair.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,29 @@ function PerfChecker.checkres_to_scatterlines(
ax = f[1, 1] = Axis(f)
colors = make_colors(length(props))
max = 2
diff = 0

lx = length(versionnums)
ly = length(data[1])
step = 0.02 * (lx - 1)
diff = (1 - ly) * step / 2.0

for i in eachindex(data[1])
xs = collect(eachindex(versionnums)) .+ diff
ys = [isempty(v[i]) ? 0 : d[i][j] / r[i] for j in eachindex(d[i])]
t = maximum(ys)
if max < ϵ(t)
max = ϵ(t)
end
diff += 0.1 / length(xs)
scatterlines!(xs, ys, label = string(props[i]), color = (colors[i], 0.4))
scatterlines!(
xs, ys; label = string(props[i]), color = (colors[i], 1.0), linewidth = 0.5)
diff += step
end
ax.yscale = Makie.pseudolog10
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = "ratio"
ax.title = "Evolution for $(x.pkgs[1].name) (via Chairmarks.jl)"
ylims!(; high = max)
# ylims!(; high = max)
f[1, 2] = Legend(f, ax)
return f
end
Expand Down
Binary file modified perf/GLM/visuals/bench_evolution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified perf/GLM/visuals/chair_evolution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions perf/PatternFolds/metadata/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,18 @@ benchmark_PatternFolds_v0.2.1_patterns_intervals,e0de2879-5d35-4872-bb8d-5e09222
benchmark_PatternFolds_v0.2.2_patterns_intervals,e0de2879-5d35-4872-bb8d-5e092227a858
benchmark_PatternFolds_v0.2.3_patterns_intervals,e0de2879-5d35-4872-bb8d-5e092227a858
benchmark_PatternFolds_v0.2.4_patterns_intervals,e0de2879-5d35-4872-bb8d-5e092227a858
alloc_PatternFolds_v0.2.0_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
alloc_PatternFolds_v0.2.1_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
alloc_PatternFolds_v0.2.2_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
alloc_PatternFolds_v0.2.3_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
alloc_PatternFolds_v0.2.4_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
benchmark_PatternFolds_v0.2.0_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
benchmark_PatternFolds_v0.2.1_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
benchmark_PatternFolds_v0.2.2_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
benchmark_PatternFolds_v0.2.3_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
benchmark_PatternFolds_v0.2.4_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
chairmark_PatternFolds_v0.2.0_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
chairmark_PatternFolds_v0.2.1_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
chairmark_PatternFolds_v0.2.2_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
chairmark_PatternFolds_v0.2.3_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
chairmark_PatternFolds_v0.2.4_patterns_intervals,36c9068f-2e67-410b-b8bb-d57c1b476f62
Loading

0 comments on commit cdcb050

Please sign in to comment.