@@ -50,7 +50,7 @@ def to_console_string(self) -> str:
5050 if self .benchmark_details :
5151 # Get terminal width (or use a reasonable default if detection fails)
5252 try :
53- terminal_width = int (shutil .get_terminal_size ().columns * 0.8 )
53+ terminal_width = int (shutil .get_terminal_size ().columns * 0.9 )
5454 except Exception :
5555 terminal_width = 200 # Fallback width
5656
@@ -60,11 +60,11 @@ def to_console_string(self) -> str:
6060 # Add columns - split Benchmark File and Function into separate columns
6161 # Using proportional width for benchmark file column (40% of terminal width)
6262 benchmark_col_width = max (int (terminal_width * 0.4 ), 40 )
63- table .add_column ("Benchmark Module Path" , style = "cyan" , width = benchmark_col_width )
64- table .add_column ("Test Function" , style = "cyan" )
65- table .add_column ("Original Runtime" , style = "magenta" )
66- table .add_column ("Expected New Runtime" , style = "green" )
67- table .add_column ("Speedup" , style = "red" )
63+ table .add_column ("Benchmark Module Path" , style = "cyan" , width = benchmark_col_width , overflow = "fold" )
64+ table .add_column ("Test Function" , style = "cyan" , overflow = "fold" )
65+ table .add_column ("Original Runtime" , style = "magenta" , justify = "right" )
66+ table .add_column ("Expected New Runtime" , style = "green" , justify = "right" )
67+ table .add_column ("Speedup" , style = "red" , justify = "right" )
6868
6969 # Add rows with split data
7070 for detail in self .benchmark_details :
0 commit comments