Skip to content

Commit 1e515d1

Browse files
try to fix benchmark failures
1 parent 199ba71 commit 1e515d1

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

JuliaBUGS/benchmark/benchmark.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,13 @@ function _create_results_dataframe(results::OrderedDict{Symbol,BenchmarkResult})
8383
),
8484
)
8585
end
86+
DataFrames.rename!(df, :Density_Time => "Density Time (µs)", :Density_Gradient_Time => "Density+Gradient Time (µs)")
8687
return df
8788
end
8889

8990
function _print_results_table(
90-
results::OrderedDict{Symbol,BenchmarkResult}; backend=Val(:text)
91+
results::OrderedDict{Symbol,BenchmarkResult}; backend=:text
9192
)
9293
df = _create_results_dataframe(results)
93-
return pretty_table(
94-
df;
95-
header=["Model", "Parameters", "Density Time (µs)", "Density+Gradient Time (µs)"],
96-
backend=backend,
97-
)
94+
return pretty_table(df; backend=backend)
9895
end

JuliaBUGS/benchmark/run_benchmarks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ for (model_name, model) in zip(examples_to_benchmark, juliabugs_models)
4545
end
4646

4747
println("### Stan results:")
48-
_print_results_table(stan_results; backend=Val(:markdown))
48+
_print_results_table(stan_results; backend=:markdown)
4949

5050
println("### JuliaBUGS Mooncake results:")
51-
_print_results_table(juliabugs_results; backend=Val(:markdown))
51+
_print_results_table(juliabugs_results; backend=:markdown)

0 commit comments

Comments
 (0)