Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
feat(bench): log 1-minute load average at stop
altic-dev521dec991116
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 6f67664c..794a3c51 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2577,7 +2577,10 @@ struct ContentView: View {private func processStoppedTranscription(route: DictationOutputRoute, pipelineID: String, toggleStopRequestedAt: TimeInterval?) async {let pipelineStartedAt = ProcessInfo.processInfo.systemUptimelet expectedOverlayLifecycleID = self.overlayLifecycleID- self.appBench("pipeline_begin id=\(pipelineID) route=\(route.rawValue) toggleStopRequestedAt=\(toggleStopRequestedAt.map { String($0) } ?? "nil")")+ var loadAverages = [Double](repeating: 0, count: 3)+ let loadSampleCount = getloadavg(&loadAverages, 3)+ let loadAverageField = loadSampleCount > 0 ? String(format: "%.1f", loadAverages[0]) : "nil"+ self.appBench("pipeline_begin id=\(pipelineID) route=\(route.rawValue) toggleStopRequestedAt=\(toggleStopRequestedAt.map { String($0) } ?? "nil") loadAvg1m=\(loadAverageField)")defer {self.appBench("pipeline_handler_return id=\(pipelineID) elapsedMs=\((ProcessInfo.processInfo.systemUptime - pipelineStartedAt) * 1000) deliveryMayBePending=true")}diff --git a/scripts/dictation_log_summary.py b/scripts/dictation_log_summary.pyindex a5ac552d..4efebe9d 100644--- a/scripts/dictation_log_summary.py+++ b/scripts/dictation_log_summary.py@@ -412,6 +412,7 @@ def summarize(run):}context = {"insertion_mode": typing_request["fields"].get("mode") if typing_request else None,+ "load_average_1m": numeric_field(pipeline_begin, "loadAvg1m"),"clipboard_command_status": "command_posted" if command_posted else (delivery_failed["fields"].get("reason") if delivery_failed else None),"clipboard_settlement_status": clipboard_status,@@ -634,8 +635,10 @@ def render_terminal_stages(rows, width=None, stages=None, title="DICTATION TIMIN"All durations in milliseconds (ms). — = not measured.", width) + [""]for index, row in enumerate(rows, 1):mode = row["context"]["insertion_mode"] or "unknown mode"+ load = row["context"].get("load_average_1m")+ load_label = f" load {load:.1f}" if load is not None else ""lines.extend(textwrap.wrap(- f"#{index} {row['time']} {(row['id'] or '?')[:8]} {mode}", width))+ f"#{index} {row['time']} {(row['id'] or '?')[:8]} {mode}{load_label}", width))for offset in range(0, len(rows), per_table):batch = rows[offset:offset + per_table]widths = [label_width] + [value_width] * len(batch)