Skip to content

Commit 59f794b

Browse files
committed
Fixes for PrettyTables=3
1 parent 2bd401a commit 59f794b

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

benchmarks/benchmarks.jl

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Pkg
22

33
using DynamicPPLBenchmarks: Models, make_suite, model_dimension
44
using BenchmarkTools: @benchmark, median, run
5-
using PrettyTables: PrettyTables, ft_printf
5+
using PrettyTables: pretty_table, fmt__printf
66
using StableRNGs: StableRNG
77

88
rng = StableRNG(23)
@@ -85,18 +85,11 @@ end
8585

8686
table_matrix = hcat(Iterators.map(collect, zip(results_table...))...)
8787
header = [
88-
"Model",
89-
"Dimension",
90-
"AD Backend",
91-
"VarInfo Type",
92-
"Linked",
93-
"Eval Time / Ref Time",
94-
"AD Time / Eval Time",
88+
"Model", "Dim", "AD Backend", "VarInfo", "Linked", "t(eval)/t(ref)", "t(grad)/t(eval)"
9589
]
96-
PrettyTables.pretty_table(
90+
pretty_table(
9791
table_matrix;
98-
header=header,
99-
tf=PrettyTables.tf_markdown,
100-
formatters=ft_printf("%.1f", [6, 7]),
101-
crop=:none, # Always print the whole table, even if it doesn't fit in the terminal.
92+
column_labels=header,
93+
backend=:text,
94+
formatters=[fmt__printf("%.1f", [6, 7])],
10295
)

0 commit comments

Comments
 (0)