A timing summary starts with a count of the runs that have a time. In the StagingBench snapshot, 69 of 129 completed runs have a recorded duration. The other 60 still produced results. They belong in the coverage count even though they contribute no value to the median. That distinction matters when readers use a single number to form an expectation about how long a run takes.

Count values before reading the flag

Each tuple carries the tool ID, room ID, test date, elapsed seconds, and approximation flag. Room IDs stay as strings to preserve the leading zero. A missing duration becomes None. The script selects numeric durations first because the approximation flag has meaning only when a time was recorded.

Of the recorded durations, eight are marked precise and 61 are marked approximate. The median uses both groups. Its two decimal places are an output format. The source flags are what tell you how the observations were recorded. Both extremes are approximate. The slowest time is shared by two runs, and the script prints both so the result does not depend on tuple order.

from collections import Counter from statistics import median runs = [ ('T01', '01', '2026-10-19', 16, False), ('T01', '02', '2026-10-19', 15, True), ('T01', '03', '2026-10-21', 12.5, True), ('T01', '04', '2026-10-21', 13.9, True), ('T01', '05', '2026-10-21', 12.2, True), ('T01', '06', '2026-10-21', 14.1, True), ('T01', '07', '2026-10-21', 15, True), ('T01', '08', '2026-10-28', None, True), ('T01', '09', '2026-10-28', None, True), ('T01', '10', '2026-10-28', None, True), ('T02', '01', '2026-10-19', 18.6, False), ('T02', '02', '2026-10-19', 19.8, False), ('T02', '03', '2026-10-19', 18.6, False), ('T02', '04', '2026-10-19', 22.0, False), ('T02', '05', '2026-10-19', 27, True), ('T02', '06', '2026-10-24', 38, True), ('T02', '07', '2026-10-24', 35, True), ('T02', '08', '2026-10-24', 25, True), ('T02', '09', '2026-10-24', 20, True), ('T02', '10', '2026-10-24', 38, True), ('T03', '01', '2026-10-19', 38.7, False), ('T03', '02', '2026-10-27', 30, True), ('T03', '03', '2026-10-28', None, True), ('T03', '04', '2026-10-28', None, True), ('T03', '05', '2026-11-06', None, True), ('T03', '06', '2026-11-06', None, True), ('T03', '07', '2026-11-06', None, True), ('T03', '08', '2026-11-06', None, True), ('T03', '09', '2026-11-06', None, True), ('T03', '10', '2026-11-06', None, True), ('T04', '01', '2026-10-19', 35, True), ('T04', '02', '2026-10-19', 30, True), ('T04', '03', '2026-10-19', 38.6, False), ('T04', '04', '2026-10-19', 40, True), ('T04', '05', '2026-10-19', 37.6, False), ('T04', '06', '2026-10-19', 53, True), ('T04', '07', '2026-10-27', 45, True), ('T04', '08', '2026-10-27', 45, True), ('T04', '09', '2026-10-27', 45, True), ('T04', '10', '2026-10-27', 45, True), ('T05', '01', '2026-11-10', 70, True), ('T05', '02', '2026-11-10', 60, True), ('T05', '03', '2026-11-10', 110, True), ('T05', '04', '2026-11-10', 59, True), ('T05', '05', '2026-11-10', 64, True), ('T05', '06', '2026-11-10', 62, True), ('T05', '07', '2026-11-10', 55, True), ('T05', '08', '2026-11-10', 53, True), ('T05', '09', '2026-11-10', 57, True), ('T05', '10', '2026-11-10', 62, True), ('T06', '01', '2026-10-19', 30, True), ('T06', '02', '2026-10-21', 190, True), ('T06', '03', '2026-10-21', 62, True), ('T06', '04', '2026-10-21', 52, True), ('T06', '05', '2026-10-21', 63, True), ('T06', '06', '2026-10-21', 54, True), ('T06', '07', '2026-10-21', 90, True), ('T06', '08', '2026-10-27', 55, True), ('T06', '09', '2026-10-27', 55, True), ('T06', '10', '2026-10-27', 55, True), ('T07', '01', '2026-10-27', None, True), ('T07', '02', '2026-10-27', None, True), ('T07', '03', '2026-10-27', None, True), ('T07', '04', '2026-11-06', None, True), ('T07', '05', '2026-11-06', None, True), ('T07', '06', '2026-11-06', None, True), ('T07', '07', '2026-11-06', None, True), ('T07', '08', '2026-11-06', None, True), ('T07', '09', '2026-11-06', None, True), ('T07', '10', '2026-11-06', None, True), ('T08', '01', '2026-10-21', 160, True), ('T08', '02', '2026-10-21', 12, True), ('T08', '03', '2026-10-21', 160, True), ('T08', '04', '2026-10-21', 175, True), ('T08', '05', '2026-10-21', 170, True), ('T08', '06', '2026-10-21', 160, True), ('T08', '07', '2026-10-21', 180, True), ('T08', '08', '2026-10-21', 180, True), ('T08', '09', '2026-10-21', 170, True), ('T08', '10', '2026-10-21', 240, True), ('T09', '01', '2026-10-27', None, True), ('T09', '02', '2026-10-28', None, True), ('T09', '03', '2026-10-28', None, True), ('T09', '04', '2026-10-28', None, True), ('T09', '05', '2026-10-28', None, True), ('T09', '06', '2026-10-28', None, True), ('T09', '07', '2026-10-28', None, True), ('T09', '08', '2026-10-28', None, True), ('T09', '09', '2026-10-28', None, True), ('T09', '10', '2026-10-28', None, True), ('T10', '01', '2026-10-27', None, True), ('T10', '02', '2026-10-27', None, True), ('T10', '03', '2026-10-27', None, True), ('T10', '04', '2026-10-28', None, True), ('T10', '05', '2026-10-28', None, True), ('T10', '06', '2026-10-28', None, True), ('T10', '07', '2026-10-28', None, True), ('T10', '08', '2026-10-28', None, True), ('T10', '09', '2026-10-28', None, True), ('T10', '10', '2026-10-28', None, True), ('T11', '01', '2026-10-28', None, True), ('T11', '02', '2026-10-28', None, True), ('T11', '03', '2026-10-28', None, True), ('T11', '04', '2026-10-28', None, True), ('T11', '05', '2026-10-28', None, True), ('T11', '06', '2026-10-28', None, True), ('T11', '07', '2026-10-28', None, True), ('T11', '08', '2026-10-28', None, True), ('T11', '09', '2026-10-28', None, True), ('T11', '10', '2026-10-28', None, True), ('T12', '01', '2026-11-09', 40, True), ('T12', '02', '2026-11-09', None, True), ('T12', '03', '2026-11-09', None, True), ('T12', '04', '2026-11-09', None, True), ('T12', '05', '2026-11-09', None, True), ('T12', '06', '2026-11-09', None, True), ('T12', '07', '2026-11-09', None, True), ('T12', '09', '2026-11-09', None, True), ('T12', '10', '2026-11-09', None, True), ('T13', '01', '2026-11-23', 240, True), ('T13', '02', '2026-11-23', 180, True), ('T13', '03', '2026-11-23', 168, True), ('T13', '04', '2026-11-23', 165, True), ('T13', '05', '2026-11-23', 204, True), ('T13', '06', '2026-11-23', 195, True), ('T13', '07', '2026-11-23', None, True), ('T13', '08', '2026-11-23', 171, True), ('T13', '09', '2026-11-23', 162, True), ('T13', '10', '2026-11-23', 168, True), ] recorded = [run for run in runs if run[3] is not None] times = [run[3] for run in recorded] approximate = sum(run[4] for run in recorded) print(f"Runs: {len(runs)}") print(f"Runs with a recorded time: {len(recorded)}") print(f"Runs with no time: {len(runs) - len(recorded)}") print(f"Runs with a precise time: {len(recorded) - approximate}") print(f"Runs with an approximate time: {approximate}") for label, seconds in (("Fastest", min(times)), ("Slowest", max(times))): matches = ", ".join( f"{tool} room {room}" for tool, room, _, time, _ in recorded if time == seconds ) print(f"{label} recorded time: {seconds:g} seconds ({matches})") print(f"Median recorded time: {median(times):.2f} seconds") room_counts = Counter(run[1] for run in recorded) for room in sorted({run[1] for run in runs}): print(f"Room {room}: {room_counts[room]}") 

Expected output

Runs: 129 Runs with a recorded time: 69 Runs with no time: 60 Runs with a precise time: 8 Runs with an approximate time: 61 Fastest recorded time: 12 seconds (T08 room 02) Slowest recorded time: 240 seconds (T08 room 10, T13 room 01) Median recorded time: 54.00 seconds Room 01: 9 Room 02: 8 Room 03: 7 Room 04: 7 Room 05: 7 Room 06: 7 Room 07: 6 Room 08: 6 Room 09: 6 Room 10: 6 

What the room counts tell you

Room 01 contributes nine durations to the pooled median. Room 07 contributes six, as do rooms 08, 09, and 10. Each observed duration has equal weight in the pooled calculation, so rooms with more timings contribute more observations. The room counts show how those observations are distributed. They also let someone who reruns the script check whether a transcription changed the number of usable values for a particular room.

There is a second distinction in room 08. T12 refused that room, so the attempted run is absent from the dataset. A tuple with None represents a completed run whose duration was left blank. Keeping the two cases distinct preserves the meaning of the 60 runs without a time and makes the denominator reproducible.

The result you can quote is a median of 54.00 seconds across 69 recorded durations, 61 of them approximate. The missing entries could shift that figure if their durations were known. The timing column gives no basis for deciding which way it would shift. Reporting coverage beside the median lets a reader see how much of the benchmark the figure describes and how much of the input was estimated.