Skip to content

Commit 21a79eb

Browse files
committed
added row lines
1 parent 6100620 commit 21a79eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codeflash/benchmarking/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import shutil
44
from typing import TYPE_CHECKING, Optional
55

6-
from rich.box import HORIZONTALS
76
from rich.console import Console
87
from rich.table import Table
98

@@ -53,7 +52,7 @@ def print_benchmark_table(function_to_results: dict[str, list[tuple[BenchmarkKey
5352
function_name = func_path.split(":")[-1]
5453

5554
# Create a table for this function
56-
table = Table(title=f"Function: {function_name}", width=terminal_width, border_style="blue", box=HORIZONTALS)
55+
table = Table(title=f"Function: {function_name}", width=terminal_width, border_style="blue", show_lines=True)
5756
benchmark_col_width = max(int(terminal_width * 0.4), 40)
5857
# Add columns - split the benchmark test into two columns
5958
table.add_column("Benchmark Module Path", width=benchmark_col_width, style="cyan", overflow="fold")

codeflash/result/explanation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def to_console_string(self) -> str:
5555
terminal_width = 200 # Fallback width
5656

5757
# Create a rich table for better formatting
58-
table = Table(title="Benchmark Performance Details", width=terminal_width)
58+
table = Table(title="Benchmark Performance Details", width=terminal_width, show_lines=True)
5959

6060
# Add columns - split Benchmark File and Function into separate columns
6161
# Using proportional width for benchmark file column (40% of terminal width)

0 commit comments

Comments
 (0)