Skip to content

Commit b9d9079

Browse files
committed
wip
1 parent 6cb322f commit b9d9079

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

dev/benchmark.cr

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@ data = versions.map_with_index do |version, index|
8787
]
8888
end.compact
8989

90-
table = Tablo::Table.new(data) do |t|
91-
t.add_column("Version") { |row| row[0] }
92-
t.add_column("Mean") { |row| "%.4fs" % row[1] }
93-
t.add_column("Std Dev") { |row| "%.4fs" % row[2] }
94-
t.add_column("Min") { |row| "%.4fs" % row[3] }
95-
t.add_column("Max") { |row| "%.4fs" % row[4] }
90+
time_format = "%.6fs"
91+
92+
table = Tablo::Table.new(data, wrap_body_cells_to: nil) do |t|
93+
t.add_column("Version", width: 40) { |row| row[0] }
94+
t.add_column("Mean", width: 14) { |row| time_format % row[1] }
95+
t.add_column("Std Dev", width: 14) { |row| time_format % row[2] }
96+
t.add_column("Min", width: 14) { |row| time_format % row[3] }
97+
t.add_column("Max", width: 14) { |row| time_format % row[4] }
9698
end
9799

98100
puts table

0 commit comments

Comments
 (0)