Skip to content

Commit

Permalink
Make formatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
VarLad committed May 21, 2024
1 parent e42a46f commit 2c417a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions ext/MakieExt/bench.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ function PerfChecker.checkres_to_scatterlines(

d = [[data[i][j] for i in eachindex(data)] for j in eachindex(data[1])]
r = minimum.(d)

versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)]

f = Figure()
ax = f[1,1] = Axis(f)
ax = f[1, 1] = Axis(f)
colors = make_colors(length(props))
max = 2
for i in eachindex(data[1])
Expand All @@ -24,21 +24,21 @@ function PerfChecker.checkres_to_scatterlines(
if max < maximum(ys)
max = maximum(ys)
end
scatterlines!(xs, ys, label=string(props[i]), color = (colors[i], 0.4))
scatterlines!(xs, ys, label = string(props[i]), color = (colors[i], 0.4))
end
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = "ratio"
ax.title = "Evolution for $(x.pkgs[1].name) (via BenchmarkTools.jl)"
ylims!(;low=0,high=max)
ylims!(; low = 0, high = max)
axislegend()
return f
end

function PerfChecker.checkres_to_boxplots(
x::PerfChecker.CheckerResult, ::Val{:benchmark}; kwarg::Symbol = :times)
datax, datay = [], []

for i in eachindex(x.tables)
j = x.tables[i]
p = x.pkgs[i]
Expand All @@ -49,11 +49,11 @@ function PerfChecker.checkres_to_boxplots(

versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)]
f = Figure()
ax = f[1,1] = Axis(f)
ax = f[1, 1] = Axis(f)
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = string(kwarg)
boxplot!(datax, datay, label=string(kwarg))
boxplot!(datax, datay, label = string(kwarg))
ax.title = x.pkgs[1].name
axislegend()
return f
Expand Down
14 changes: 7 additions & 7 deletions ext/MakieExt/chair.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ function PerfChecker.checkres_to_scatterlines(

d = [[data[i][j] for i in eachindex(data)] for j in eachindex(data[1])]
r = minimum.(d)

versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)]

f = Figure()
ax = f[1,1] = Axis(f)
ax = f[1, 1] = Axis(f)
colors = make_colors(length(props))
max = 2
for i in eachindex(data[1])
Expand All @@ -24,13 +24,13 @@ function PerfChecker.checkres_to_scatterlines(
if max < maximum(ys)
max = maximum(ys)
end
scatterlines!(xs, ys, label=string(props[i]), color = (colors[i], 0.4))
scatterlines!(xs, ys, label = string(props[i]), color = (colors[i], 0.4))
end
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = "ratio"
ax.title = "Evolution for $(x.pkgs[1].name) (via Chairmarks.jl)"
ylims!(;low=0,high=max)
ylims!(; low = 0, high = max)
axislegend()
return f
end
Expand All @@ -39,7 +39,7 @@ function PerfChecker.checkres_to_boxplots(
x::PerfChecker.CheckerResult, ::Val{:chairmark}; kwarg::Symbol = :times)
di = Dict()
datax, datay = [], []

for i in eachindex(x.tables)
j = x.tables[i]
p = x.pkgs[i]
Expand All @@ -50,11 +50,11 @@ function PerfChecker.checkres_to_boxplots(

versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)]
f = Figure()
ax = f[1,1] = Axis(f)
ax = f[1, 1] = Axis(f)
ax.xticks = (eachindex(versionnums), string.(versionnums))
ax.xlabel = "versions"
ax.ylabel = string(kwarg)
boxplot!(datax, datay, label=string(kwarg))
boxplot!(datax, datay, label = string(kwarg))
ax.title = x.pkgs[1].name
axislegend()
return f
Expand Down

0 comments on commit 2c417a0

Please sign in to comment.