@@ -52,8 +52,8 @@ def generate_summary_table(results: list[dict[str, Any]]) -> str:
5252 scored_results .sort (key = lambda x : x ["total_score" ], reverse = True )
5353
5454 lines = [
55- "| Rank | Device | CPU | RAM | GPU | VRAM | Embeddings | LLM | Total Score |" ,
56- "|------|--------|-----|-----|-----|------|------------|-----|-------------|" ,
55+ "| Rank | Device | Platform | CPU | RAM | GPU | VRAM | Embeddings | LLM | Total Score |" ,
56+ "|------|--------|----------|----- |-----|-----|------|------------|-----|-------------|" ,
5757 ]
5858
5959 for rank , item in enumerate (scored_results , 1 ):
@@ -72,13 +72,23 @@ def generate_summary_table(results: list[dict[str, Any]]) -> str:
7272 else :
7373 vram_str = str (gpu_mem )
7474
75+ # Format platform with emoji
76+ platform = device_info .get ("platform" , "Unknown" )
77+ platform_emoji_map = {
78+ "Darwin" : "🍏 macOS" ,
79+ "Linux" : "🐧 Linux" ,
80+ "Windows" : "🪟 Windows" ,
81+ }
82+ platform_str = platform_emoji_map .get (platform , platform )
83+
7584 # Add medal emoji for top 3
7685 rank_emoji = {1 : "🥇" , 2 : "🥈" , 3 : "🥉" }.get (rank , "" )
7786 rank_str = f"{ rank_emoji } { rank } " if rank_emoji else str (rank )
7887
7988 lines .append (
80- f"| { rank_str } | { device_info ['host' ]} | { device_info ['processor' ]} | "
81- f"{ device_info ['ram_gb' ]:.0f} GB | { device_info ['gpu_name' ]} | { vram_str } | "
89+ f"| { rank_str } | { device_info ['host' ]} | { platform_str } | "
90+ f"{ device_info ['processor' ]} | { device_info ['ram_gb' ]:.0f} GB | "
91+ f"{ device_info ['gpu_name' ]} | { vram_str } | "
8292 f"{ emb_str } | { llm_str } | **{ total_str } ** |"
8393 )
8494
@@ -241,7 +251,7 @@ def generate_gpu_grouped_tables(results: list[dict[str, Any]]) -> str:
241251
242252 # Vendor emojis
243253 vendor_emojis = {
244- "Apple" : "🍎 " ,
254+ "Apple" : "⚫ " ,
245255 "NVIDIA" : "🟢" ,
246256 "AMD" : "🔴" ,
247257 "Intel" : "🔵" ,
@@ -266,10 +276,10 @@ def generate_gpu_grouped_tables(results: list[dict[str, Any]]) -> str:
266276
267277 # Table header
268278 sections .append (
269- "| Rank | Device | CPU | RAM | GPU | VRAM | Embeddings | LLM | Total Score |"
279+ "| Rank | Device | Platform | CPU | RAM | GPU | VRAM | Embeddings | LLM | Total Score |"
270280 )
271281 sections .append (
272- "|------|--------|-----|-----|-----|------|------------|-----|-------------|"
282+ "|------|--------|----------|----- |-----|-----|------|------------|-----|-------------|"
273283 )
274284
275285 # Table rows
@@ -291,13 +301,23 @@ def generate_gpu_grouped_tables(results: list[dict[str, Any]]) -> str:
291301 else :
292302 vram_str = str (gpu_mem )
293303
304+ # Format platform with emoji
305+ platform = device_info .get ("platform" , "Unknown" )
306+ platform_emoji_map = {
307+ "Darwin" : "🍏 macOS" ,
308+ "Linux" : "🐧 Linux" ,
309+ "Windows" : "🪟 Windows" ,
310+ }
311+ platform_str = platform_emoji_map .get (platform , platform )
312+
294313 # Add medal emoji for top 3 within vendor
295314 rank_emoji = {1 : "🥇" , 2 : "🥈" , 3 : "🥉" }.get (rank , "" )
296315 rank_str = f"{ rank_emoji } { rank } " if rank_emoji else str (rank )
297316
298317 sections .append (
299- f"| { rank_str } | { device_info ['host' ]} | { device_info ['processor' ]} | "
300- f"{ device_info ['ram_gb' ]:.0f} GB | { device_info ['gpu_name' ]} | { vram_str } | "
318+ f"| { rank_str } | { device_info ['host' ]} | { platform_str } | "
319+ f"{ device_info ['processor' ]} | { device_info ['ram_gb' ]:.0f} GB | "
320+ f"{ device_info ['gpu_name' ]} | { vram_str } | "
301321 f"{ emb_str } | { llm_str } | **{ total_str } ** |"
302322 )
303323
0 commit comments