Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
VarLad committed May 14, 2024
1 parent 11693c3 commit 2e3cd2a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
27 changes: 15 additions & 12 deletions ext/MakieExt/bench.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
function PerfChecker.checkres_to_scatterlines(x::Table, ::Val{:benchmark})

function PerfChecker.checkres_to_scatterlines(x::PerfChecker.CheckerResult, ::Val{:benchmark})
println("Hello!")
@warn "Here!"
end
#=
function PerfChecker.checkres_to_boxplots(x::CheckerResults, ::Val{:benchmark}; kwarg = :times)

function PerfChecker.checkres_to_boxplots(x::PerfChecker.CheckerResult, ::Val{:benchmark}; kwarg = :times)
di = Dict()
data = []
for i in eachindex(x.tables)
j = x.tables[i]
p = x.pkgs[i]
g = getproperties(j[i], (kwargs,))
g = [g[k][1] for k in eachindex(g)]
push!((fill(i, length(g)), g))
end
#for i in eachindex(x.tables)
#j = x.tables[i]
#p = x.pkgs[i]
#g = getproperties(j[i], (kwargs,))
#g = [g[k][1] for k in eachindex(g)]
#push!((fill(i, length(g)), g))
#end

#=
w = getproperties(j[1], (:allocs,))
versions = Dict()
for i in eachindex(x.pkgs)
Expand All @@ -35,5 +37,6 @@ function PerfChecker.checkres_to_boxplots(x::CheckerResults, ::Val{:benchmark};
ax.title = x.pkgs[1].name
Legend(f[1,2], ax)
return f
=#
return data
end
=#
Binary file removed images/benchmark-memory.png
Binary file not shown.
6 changes: 4 additions & 2 deletions perf/PatternFolds/bench.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using PerfChecker, BenchmarkTools
using PerfChecker, BenchmarkTools, CairoMakie

t = @check :benchmark Dict(:path => @__DIR__, :evals => 1, :samples => 100, :seconds => 100) begin
t = @check :benchmark Dict(:path => @__DIR__, :evals => 1, :samples => 100, :seconds => 100, :tags => [:patterns, :intervals], :pkgs => ("PatternFolds", :custom, [v"0.2.2", v"0.2.3"], true)) begin
using PatternFolds
end begin
# Intervals
Expand All @@ -27,3 +27,5 @@ t = @check :benchmark Dict(:path => @__DIR__, :evals => 1, :samples => 100, :sec
end

@info t

@info checkres_to_boxplots(t, Val(:benchmark))
1 change: 1 addition & 0 deletions src/PerfChecker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export checkres_to_scatterlines
export saveplot
export csv_to_table
export table_to_csv
export checkres_to_boxplots

# SECTION - Includes
include("versions.jl")
Expand Down

0 comments on commit 2e3cd2a

Please sign in to comment.