@@ -154,17 +154,17 @@ def compare(
154154 baseline = BenchmarkRun .load_from_file (baseline_path )
155155 comparison = BenchmarkRun .load_from_file (comparison_path )
156156
157- console = Console ()
157+ console = Console (width = 200 )
158158
159159 # use basename as the column names
160- baseline_header = baseline_path .parent .stem
161- comparison_header = comparison_path .parent .stem
160+ baseline_header = baseline_path .parent .name
161+ comparison_header = comparison_path .parent .name
162162
163163 table = Table (show_header = True , header_style = "bold magenta" )
164- table .add_column ("Query" , style = "dim" , width = 12 )
165- table .add_column (baseline_header , justify = "right" , style = "dim" )
166- table .add_column (comparison_header , justify = "right" , style = "dim" )
167- table .add_column ("Change" , justify = "right" , style = "dim" )
164+ table .add_column ("Query" , style = "dim" , no_wrap = True )
165+ table .add_column (baseline_header , justify = "right" , style = "dim" , no_wrap = True )
166+ table .add_column (comparison_header , justify = "right" , style = "dim" , no_wrap = True )
167+ table .add_column ("Change" , justify = "right" , style = "dim" , no_wrap = True )
168168
169169 faster_count = 0
170170 slower_count = 0
@@ -175,12 +175,12 @@ def compare(
175175
176176 for baseline_result , comparison_result in zip (baseline .queries , comparison .queries ):
177177 assert baseline_result .query == comparison_result .query
178-
178+
179179 base_failed = not baseline_result .success
180- comp_failed = not comparison_result .success
180+ comp_failed = not comparison_result .success
181181 # If a query fails, its execution time is excluded from the performance comparison
182182 if base_failed or comp_failed :
183- change_text = "incomparable"
183+ change_text = "incomparable"
184184 failure_count += 1
185185 table .add_row (
186186 f"Q{ baseline_result .query } " ,
0 commit comments