Skip to content

Commit 87ba460

Browse files
committed
final
Signed-off-by: Yang Wang <[email protected]>
1 parent 8e6956d commit 87ba460

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.ci/scripts/benchmark_tooling/get_benchmark_analysis_data.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
from dataclasses import dataclass
66
from datetime import datetime
7-
from sre_compile import REPEAT_ONE
87
from typing import Any, Dict, List, Optional, Tuple
98

109
import pandas as pd
@@ -139,6 +138,7 @@ def argparser():
139138

140139
return parser.parse_args()
141140

141+
142142
class ExecutorchBenchmarkFetcher:
143143
"""
144144
Fetch and process benchmark data from HUD API for ExecutorchBenchmark.
@@ -395,23 +395,36 @@ def _get_base_url(self) -> str:
395395
def print_all_names(self) -> None:
396396
"""
397397
Print all benchmark table names found in the data.
398-
399398
Separates results by device type (public/private) and displays counts.
400399
This is useful for debugging and understanding what data is available.
401400
"""
402401
if not self.data:
403402
return
404403
logging.info("peeking table result:")
405404
logging.info(json.dumps(self.data[0], indent=2))
406-
names = [item["table_name"] for item in self.data]
405+
public_ones = [
406+
item["table_name"]
407+
for item in self.data
408+
if item["groupInfo"]["aws_type"] == "public"
409+
]
410+
private_ones = [
411+
item["table_name"]
412+
for item in self.data
413+
if item["groupInfo"]["aws_type"] == "private"
414+
]
407415
# Print all found benchmark table names
408416
logging.info(
409-
"\n============List all benchmark result table names =================\n"
417+
"\n============List all benchmark result table names (Public and Private) below =================\n"
410418
)
411419
logging.info(
412-
f"\n============ public device benchmark results({len(names)})=================\n"
420+
f"\n============ public device benchmark results({len(public_ones)})=================\n"
421+
)
422+
for name in public_ones:
423+
logging.info(name)
424+
logging.info(
425+
f"\n======= private device benchmark results({len(private_ones)})=======\n"
413426
)
414-
for name in names:
427+
for name in private_ones:
415428
logging.info(name)
416429

417430
def _generate_table_name(self, group_info: dict, fields: list[str]) -> str:

0 commit comments

Comments
 (0)