benchforge 0.1.11 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +99 -294
- package/bin/benchforge +1 -2
- package/dist/AnalyzeArchive-8NCJhmhS.mjs +145 -0
- package/dist/AnalyzeArchive-8NCJhmhS.mjs.map +1 -0
- package/dist/BenchMatrix-BZVrBB_h.mjs +1050 -0
- package/dist/BenchMatrix-BZVrBB_h.mjs.map +1 -0
- package/dist/{BenchRunner-BzyUfiyB.d.mts → BenchRunner-DglX1NOn.d.mts} +119 -66
- package/dist/CoverageSampler-D5T9DRqe.mjs +27 -0
- package/dist/CoverageSampler-D5T9DRqe.mjs.map +1 -0
- package/dist/Formatters-BWj3d4sv.mjs +95 -0
- package/dist/Formatters-BWj3d4sv.mjs.map +1 -0
- package/dist/{HeapSampler-B8dtKHn1.mjs → HeapSampler-Dq-hpXem.mjs} +4 -4
- package/dist/HeapSampler-Dq-hpXem.mjs.map +1 -0
- package/dist/RunBenchCLI-C17DrJz8.mjs +3075 -0
- package/dist/RunBenchCLI-C17DrJz8.mjs.map +1 -0
- package/dist/StatisticalUtils-BD92crgM.mjs +255 -0
- package/dist/StatisticalUtils-BD92crgM.mjs.map +1 -0
- package/dist/TimeSampler-Ds8n7l2B.mjs +29 -0
- package/dist/TimeSampler-Ds8n7l2B.mjs.map +1 -0
- package/dist/ViewerServer-BJhdnxlN.mjs +639 -0
- package/dist/ViewerServer-BJhdnxlN.mjs.map +1 -0
- package/dist/ViewerServer-CuMNdNBz.mjs +2 -0
- package/dist/bin/benchforge.mjs +4 -5
- package/dist/bin/benchforge.mjs.map +1 -1
- package/dist/index.d.mts +711 -558
- package/dist/index.mjs +98 -3
- package/dist/index.mjs.map +1 -0
- package/dist/runners/WorkerScript.d.mts +12 -4
- package/dist/runners/WorkerScript.mjs +77 -105
- package/dist/runners/WorkerScript.mjs.map +1 -1
- package/dist/viewer/assets/CIPlot-BkOvMoMa.js +1 -0
- package/dist/viewer/assets/HistogramKde-CmSyUFY0.js +1 -0
- package/dist/viewer/assets/LegendUtils-BJpbn_jr.js +55 -0
- package/dist/viewer/assets/SampleTimeSeries-C4VBhXr3.js +1 -0
- package/dist/viewer/assets/index-Br9bp_cX.js +153 -0
- package/dist/viewer/assets/index-NzXXe_CC.css +1 -0
- package/dist/viewer/index.html +19 -0
- package/dist/viewer/speedscope/LICENSE +21 -0
- package/dist/viewer/speedscope/SourceCodePro-Regular.ttf-ILST5JV6.woff2 +0 -0
- package/dist/viewer/speedscope/favicon-16x16-V2DMIAZS.js +2 -0
- package/dist/viewer/speedscope/favicon-16x16-V2DMIAZS.js.map +7 -0
- package/dist/viewer/speedscope/favicon-16x16-VSI62OPJ.png +0 -0
- package/dist/viewer/speedscope/favicon-32x32-3EB2YCUY.png +0 -0
- package/dist/viewer/speedscope/favicon-32x32-THY3JDJL.js +2 -0
- package/dist/viewer/speedscope/favicon-32x32-THY3JDJL.js.map +7 -0
- package/dist/viewer/speedscope/favicon-FOKUP5Y5.ico +0 -0
- package/dist/viewer/speedscope/favicon-M34RF7BI.js +2 -0
- package/dist/viewer/speedscope/favicon-M34RF7BI.js.map +7 -0
- package/dist/viewer/speedscope/file-format-schema.json +274 -0
- package/dist/viewer/speedscope/index.html +19 -0
- package/dist/viewer/speedscope/jfrview_bg-BLJXNNQB.wasm +0 -0
- package/dist/viewer/speedscope/perf-vertx-stacks-01-collapsed-all-ZNUIGAJL.txt +199 -0
- package/dist/viewer/speedscope/release.txt +3 -0
- package/dist/viewer/speedscope/source-code-pro.LICENSE.md +93 -0
- package/dist/viewer/speedscope/speedscope-GHPHNKXC.css +2 -0
- package/dist/viewer/speedscope/speedscope-GHPHNKXC.css.map +7 -0
- package/dist/viewer/speedscope/speedscope-QZFMJ7VP.js +212 -0
- package/dist/viewer/speedscope/speedscope-QZFMJ7VP.js.map +7 -0
- package/package.json +52 -27
- package/src/bin/benchforge.ts +2 -2
- package/src/cli/AnalyzeArchive.ts +232 -0
- package/src/cli/BrowserBench.ts +322 -0
- package/src/cli/CliArgs.ts +164 -51
- package/src/cli/CliExport.ts +179 -0
- package/src/cli/CliOptions.ts +147 -0
- package/src/cli/CliReport.ts +197 -0
- package/src/cli/FilterBenchmarks.ts +18 -30
- package/src/cli/RunBenchCLI.ts +132 -866
- package/src/cli/SuiteRunner.ts +160 -0
- package/src/cli/ViewerServer.ts +282 -0
- package/src/export/AllocExport.ts +121 -0
- package/src/export/ArchiveExport.ts +146 -0
- package/src/export/ArchiveFormat.ts +50 -0
- package/src/export/CoverageExport.ts +148 -0
- package/src/export/EditorUri.ts +10 -0
- package/src/export/PerfettoExport.ts +64 -99
- package/src/export/SpeedscopeTypes.ts +98 -0
- package/src/export/TimeExport.ts +115 -0
- package/src/index.ts +86 -67
- package/src/matrix/BenchMatrix.ts +230 -0
- package/src/matrix/CaseLoader.ts +8 -6
- package/src/matrix/MatrixDirRunner.ts +153 -0
- package/src/matrix/MatrixFilter.ts +49 -47
- package/src/matrix/MatrixInlineRunner.ts +50 -0
- package/src/matrix/MatrixReport.ts +90 -250
- package/src/matrix/VariantLoader.ts +5 -5
- package/src/profiling/browser/BenchLoop.ts +51 -0
- package/src/profiling/browser/BrowserCDP.ts +133 -0
- package/src/profiling/browser/BrowserGcStats.ts +33 -0
- package/src/profiling/browser/BrowserProfiler.ts +160 -0
- package/src/profiling/browser/CdpClient.ts +82 -0
- package/src/profiling/browser/CdpPage.ts +138 -0
- package/src/profiling/browser/ChromeLauncher.ts +158 -0
- package/src/profiling/browser/ChromeTraceEvent.ts +28 -0
- package/src/profiling/browser/PageLoadMode.ts +61 -0
- package/src/profiling/node/CoverageSampler.ts +27 -0
- package/src/profiling/node/CoverageTypes.ts +23 -0
- package/src/profiling/node/HeapSampleReport.ts +261 -0
- package/src/{heap-sample → profiling/node}/HeapSampler.ts +1 -2
- package/src/{heap-sample → profiling/node}/ResolvedProfile.ts +18 -9
- package/src/profiling/node/TimeSampler.ts +57 -0
- package/src/report/BenchmarkReport.ts +146 -0
- package/src/report/Colors.ts +9 -0
- package/src/report/Formatters.ts +110 -0
- package/src/report/GcSections.ts +151 -0
- package/src/{GitUtils.ts → report/GitUtils.ts} +18 -19
- package/src/report/HtmlReport.ts +223 -0
- package/src/report/ParseStats.ts +73 -0
- package/src/report/StandardSections.ts +147 -0
- package/src/report/ViewerSections.ts +286 -0
- package/src/report/text/TableReport.ts +253 -0
- package/src/report/text/TextReport.ts +123 -0
- package/src/runners/AdaptiveWrapper.ts +116 -236
- package/src/runners/BenchRunner.ts +20 -15
- package/src/{Benchmark.ts → runners/BenchmarkSpec.ts} +5 -6
- package/src/runners/CreateRunner.ts +5 -7
- package/src/runners/GcStats.ts +47 -50
- package/src/{MeasuredResults.ts → runners/MeasuredResults.ts} +43 -37
- package/src/runners/MergeBatches.ts +123 -0
- package/src/{NodeGC.ts → runners/NodeGC.ts} +2 -3
- package/src/runners/RunnerOrchestrator.ts +127 -243
- package/src/runners/RunnerUtils.ts +75 -1
- package/src/runners/SampleStats.ts +100 -0
- package/src/runners/TimingRunner.ts +244 -0
- package/src/runners/TimingUtils.ts +3 -2
- package/src/runners/WorkerScript.ts +135 -151
- package/src/stats/BootstrapDifference.ts +282 -0
- package/src/{PermutationTest.ts → stats/PermutationTest.ts} +8 -17
- package/src/stats/StatisticalUtils.ts +445 -0
- package/src/{tests → test}/AdaptiveConvergence.test.ts +10 -10
- package/src/test/AdaptiveRunner.test.ts +39 -41
- package/src/{tests → test}/AdaptiveSampling.test.ts +9 -9
- package/src/test/AdaptiveStatistics.integration.ts +2 -2
- package/src/{tests → test}/BenchMatrix.test.ts +19 -16
- package/src/test/BenchmarkReport.test.ts +63 -13
- package/src/test/BrowserBench.e2e.test.ts +186 -17
- package/src/test/BrowserBench.test.ts +10 -5
- package/src/test/BuildTimeSection.test.ts +130 -0
- package/src/test/CapSamples.test.ts +82 -0
- package/src/test/CoverageExport.test.ts +115 -0
- package/src/test/CoverageSampler.test.ts +33 -0
- package/src/test/HeapAttribution.test.ts +14 -14
- package/src/{tests → test}/MatrixFilter.test.ts +1 -1
- package/src/{tests → test}/MatrixReport.test.ts +1 -1
- package/src/test/PermutationTest.test.ts +1 -1
- package/src/{tests → test}/RealDataValidation.test.ts +6 -6
- package/src/test/RunBenchCLI.test.ts +39 -38
- package/src/test/RunnerOrchestrator.test.ts +12 -12
- package/src/test/StatisticalUtils.test.ts +48 -12
- package/src/{table-util/test → test}/TableReport.test.ts +2 -2
- package/src/test/TestUtils.ts +12 -7
- package/src/test/TimeExport.test.ts +139 -0
- package/src/test/TimeSampler.test.ts +37 -0
- package/src/test/ViewerLive.e2e.test.ts +159 -0
- package/src/test/ViewerStatic.static.e2e.test.ts +137 -0
- package/src/{tests → test}/fixtures/baseline/impl.ts +1 -1
- package/src/{tests → test}/fixtures/bevy30-samples.ts +3 -1
- package/src/test/fixtures/cases/asyncCases.ts +9 -0
- package/src/{tests → test}/fixtures/cases/cases.ts +5 -2
- package/src/test/fixtures/cases/variants/product.ts +2 -0
- package/src/test/fixtures/cases/variants/sum.ts +2 -0
- package/src/test/fixtures/discover/fast.ts +1 -0
- package/src/{tests → test}/fixtures/discover/slow.ts +1 -1
- package/src/test/fixtures/invalid/bad.ts +1 -0
- package/src/test/fixtures/loader/fast.ts +1 -0
- package/src/{tests → test}/fixtures/loader/slow.ts +1 -1
- package/src/test/fixtures/loader/stateful.ts +2 -0
- package/src/test/fixtures/stateful/stateful.ts +2 -0
- package/src/test/fixtures/variants/extra.ts +1 -0
- package/src/test/fixtures/variants/impl.ts +1 -0
- package/src/test/fixtures/worker/fast.ts +1 -0
- package/src/{tests → test}/fixtures/worker/slow.ts +1 -1
- package/src/viewer/DateFormat.ts +30 -0
- package/src/viewer/Helpers.ts +23 -0
- package/src/viewer/LineData.ts +120 -0
- package/src/viewer/Providers.ts +191 -0
- package/src/viewer/ReportData.ts +123 -0
- package/src/viewer/State.ts +49 -0
- package/src/viewer/Theme.ts +15 -0
- package/src/viewer/components/App.tsx +73 -0
- package/src/viewer/components/DropZone.tsx +71 -0
- package/src/viewer/components/LazyPlot.ts +33 -0
- package/src/viewer/components/SamplesPanel.tsx +214 -0
- package/src/viewer/components/Shell.tsx +26 -0
- package/src/viewer/components/SourcePanel.tsx +216 -0
- package/src/viewer/components/SummaryPanel.tsx +332 -0
- package/src/viewer/components/TabBar.tsx +131 -0
- package/src/viewer/components/TabContent.tsx +46 -0
- package/src/viewer/components/ThemeToggle.tsx +50 -0
- package/src/viewer/index.html +20 -0
- package/src/viewer/main.tsx +4 -0
- package/src/viewer/plots/CIPlot.ts +313 -0
- package/src/{html/browser → viewer/plots}/HistogramKde.ts +33 -38
- package/src/viewer/plots/LegendUtils.ts +134 -0
- package/src/viewer/plots/PlotTypes.ts +85 -0
- package/src/viewer/plots/RenderPlots.ts +230 -0
- package/src/viewer/plots/SampleTimeSeries.ts +306 -0
- package/src/viewer/plots/SvgHelpers.ts +136 -0
- package/src/viewer/plots/TimeSeriesMarks.ts +319 -0
- package/src/viewer/report.css +427 -0
- package/src/viewer/shell.css +357 -0
- package/src/viewer/tsconfig.json +11 -0
- package/dist/BrowserHeapSampler-B6asLKWQ.mjs +0 -202
- package/dist/BrowserHeapSampler-B6asLKWQ.mjs.map +0 -1
- package/dist/GcStats-wX7Xyblu.mjs +0 -77
- package/dist/GcStats-wX7Xyblu.mjs.map +0 -1
- package/dist/HeapSampler-B8dtKHn1.mjs.map +0 -1
- package/dist/TimingUtils-DwOwkc8G.mjs +0 -597
- package/dist/TimingUtils-DwOwkc8G.mjs.map +0 -1
- package/dist/browser/index.js +0 -914
- package/dist/src-B-DDaCa9.mjs +0 -3108
- package/dist/src-B-DDaCa9.mjs.map +0 -1
- package/src/BenchMatrix.ts +0 -380
- package/src/BenchmarkReport.ts +0 -161
- package/src/HtmlDataPrep.ts +0 -148
- package/src/StandardSections.ts +0 -261
- package/src/StatisticalUtils.ts +0 -175
- package/src/TypeUtil.ts +0 -8
- package/src/browser/BrowserGcStats.ts +0 -44
- package/src/browser/BrowserHeapSampler.ts +0 -271
- package/src/export/JsonExport.ts +0 -103
- package/src/export/JsonFormat.ts +0 -91
- package/src/export/SpeedscopeExport.ts +0 -202
- package/src/heap-sample/HeapSampleReport.ts +0 -269
- package/src/html/HtmlReport.ts +0 -131
- package/src/html/HtmlTemplate.ts +0 -284
- package/src/html/Types.ts +0 -88
- package/src/html/browser/CIPlot.ts +0 -287
- package/src/html/browser/LegendUtils.ts +0 -163
- package/src/html/browser/RenderPlots.ts +0 -263
- package/src/html/browser/SampleTimeSeries.ts +0 -389
- package/src/html/browser/Types.ts +0 -96
- package/src/html/browser/index.ts +0 -1
- package/src/html/index.ts +0 -17
- package/src/runners/BasicRunner.ts +0 -364
- package/src/table-util/ConvergenceFormatters.ts +0 -19
- package/src/table-util/Formatters.ts +0 -157
- package/src/table-util/README.md +0 -70
- package/src/table-util/TableReport.ts +0 -293
- package/src/tests/fixtures/cases/asyncCases.ts +0 -7
- package/src/tests/fixtures/cases/variants/product.ts +0 -2
- package/src/tests/fixtures/cases/variants/sum.ts +0 -2
- package/src/tests/fixtures/discover/fast.ts +0 -1
- package/src/tests/fixtures/invalid/bad.ts +0 -1
- package/src/tests/fixtures/loader/fast.ts +0 -1
- package/src/tests/fixtures/loader/stateful.ts +0 -2
- package/src/tests/fixtures/stateful/stateful.ts +0 -2
- package/src/tests/fixtures/variants/extra.ts +0 -1
- package/src/tests/fixtures/variants/impl.ts +0 -1
- package/src/tests/fixtures/worker/fast.ts +0 -1
- /package/src/{table-util/test → test}/TableValueExtractor.test.ts +0 -0
- /package/src/{table-util/test → test}/TableValueExtractor.ts +0 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
/* Report panel — benchmark results rendered by SummaryPanel */
|
|
2
|
+
|
|
3
|
+
.report-panel {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0; left: 0; right: 0; bottom: 0;
|
|
6
|
+
overflow: auto;
|
|
7
|
+
background: #f5f5f5;
|
|
8
|
+
padding: 20px;
|
|
9
|
+
display: none;
|
|
10
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
11
|
+
line-height: 1.6;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.report-panel.active { display: block; }
|
|
15
|
+
|
|
16
|
+
/* --- Header --- */
|
|
17
|
+
|
|
18
|
+
.report-panel .report-header {
|
|
19
|
+
background: white;
|
|
20
|
+
padding: 10px 15px;
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
margin-bottom: 20px;
|
|
23
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.report-panel .cli-args {
|
|
30
|
+
font-family: "SF Mono", Monaco, "Consolas", monospace;
|
|
31
|
+
font-size: 11px;
|
|
32
|
+
color: #555;
|
|
33
|
+
background: #f0f0f0;
|
|
34
|
+
padding: 6px 10px;
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
word-break: break-word;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.report-panel .metadata { color: #666; font-size: 12px; }
|
|
40
|
+
.report-panel .benchforge-version { font-size: 10px; color: #999; }
|
|
41
|
+
.report-panel .header-right { text-align: right; }
|
|
42
|
+
.report-panel .version-info { font-size: 12px; color: #666; margin-top: 6px; }
|
|
43
|
+
|
|
44
|
+
/* --- Group --- */
|
|
45
|
+
|
|
46
|
+
.report-panel .benchmark-group { margin-bottom: 24px; }
|
|
47
|
+
|
|
48
|
+
.report-panel .group-header {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 10px;
|
|
52
|
+
padding: 8px 0;
|
|
53
|
+
border-bottom: 2px solid #e0e0e0;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
user-select: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.report-panel .group-header h2 {
|
|
59
|
+
margin: 0;
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
color: #555;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.report-panel .group-toggle {
|
|
65
|
+
font-size: 40px;
|
|
66
|
+
line-height: 0;
|
|
67
|
+
position: relative;
|
|
68
|
+
top: -2px;
|
|
69
|
+
color: #999;
|
|
70
|
+
width: 24px;
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* --- Badges --- */
|
|
75
|
+
|
|
76
|
+
.report-panel .badge {
|
|
77
|
+
font-size: 11px;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
padding: 2px 8px;
|
|
80
|
+
border-radius: 10px;
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
letter-spacing: 0.4px;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.report-panel .badge-faster { background: #dcfce7; color: #166534; }
|
|
87
|
+
.report-panel .badge-slower { background: #fee2e2; color: #991b1b; }
|
|
88
|
+
.report-panel .badge-uncertain { background: #dbeafe; color: #1e40af; }
|
|
89
|
+
.report-panel .badge-equivalent { background: #f0fdf4; color: #166534; }
|
|
90
|
+
.report-panel .batch-warnings { display: flex; flex-direction: column; gap: 0.3em; margin-left: 8px; }
|
|
91
|
+
.report-panel .batch-warning { font-size: 11px; color: #92400e; }
|
|
92
|
+
|
|
93
|
+
.report-panel .comparison-badge {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: 6px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* --- CI plots --- */
|
|
100
|
+
|
|
101
|
+
.report-panel .ci-plot-container { display: inline-block; vertical-align: middle; }
|
|
102
|
+
.report-panel .ci-plot-container svg { display: block; }
|
|
103
|
+
.report-panel .ci-plot-inline { display: inline-block; vertical-align: middle; margin-left: 6px; }
|
|
104
|
+
.report-panel .ci-plot-inline svg { display: block; }
|
|
105
|
+
|
|
106
|
+
/* --- Panel grid --- */
|
|
107
|
+
|
|
108
|
+
.report-panel .panel-grid {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-template-columns: repeat(2, 1fr);
|
|
111
|
+
gap: 12px;
|
|
112
|
+
margin-top: 12px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* --- Section panel --- */
|
|
116
|
+
|
|
117
|
+
.report-panel .section-panel {
|
|
118
|
+
background: white;
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.report-panel .panel-header {
|
|
125
|
+
padding: 8px 14px;
|
|
126
|
+
font-size: 11px;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
text-transform: uppercase;
|
|
129
|
+
letter-spacing: 0.5px;
|
|
130
|
+
color: #888;
|
|
131
|
+
border-bottom: 1px solid #f0f0f0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.report-panel .panel-title-link {
|
|
135
|
+
color: #5f61d8;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
text-decoration: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.report-panel .panel-title-link:hover { text-decoration: underline; }
|
|
141
|
+
|
|
142
|
+
.report-panel .panel-body { padding: 8px 14px; }
|
|
143
|
+
|
|
144
|
+
/* --- Stat rows --- */
|
|
145
|
+
|
|
146
|
+
.report-panel .stat-row {
|
|
147
|
+
margin-bottom: 8px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.report-panel .stat-row:last-child { margin-bottom: 0; }
|
|
151
|
+
|
|
152
|
+
.report-panel .row-header {
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: 8px;
|
|
156
|
+
margin-bottom: 2px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.report-panel .row-label {
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
color: #666;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.report-panel .primary-row .row-label {
|
|
166
|
+
font-size: 14px;
|
|
167
|
+
font-weight: 700;
|
|
168
|
+
color: #444;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.report-panel .shared-row {
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.report-panel .shared-row .row-value {
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
color: #333;
|
|
181
|
+
font-variant-numeric: tabular-nums;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* --- Run entries --- */
|
|
185
|
+
|
|
186
|
+
.report-panel .run-entry {
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
gap: 8px;
|
|
190
|
+
padding: 1px 0 1px 16px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.report-panel .run-name {
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
color: #999;
|
|
196
|
+
flex: 0 0 var(--run-name-width, 80px);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.report-panel .run-value {
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
color: #333;
|
|
203
|
+
font-variant-numeric: tabular-nums;
|
|
204
|
+
text-align: right;
|
|
205
|
+
flex: 0 0 var(--run-value-width, 80px);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* --- Plot areas (kept for SamplesPanel) --- */
|
|
209
|
+
|
|
210
|
+
.report-panel .plot-grid {
|
|
211
|
+
display: grid;
|
|
212
|
+
grid-template-columns: 1fr 1fr;
|
|
213
|
+
gap: 20px;
|
|
214
|
+
margin-bottom: 30px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.report-panel .plot-container {
|
|
218
|
+
background: white;
|
|
219
|
+
padding: 20px;
|
|
220
|
+
border-radius: 8px;
|
|
221
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.report-panel .plot-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #333; }
|
|
225
|
+
.report-panel .plot-description { font-size: 14px; color: #666; margin-bottom: 15px; }
|
|
226
|
+
|
|
227
|
+
.report-panel .plot-controls {
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
gap: 12px;
|
|
231
|
+
margin-bottom: 10px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.report-panel .series-toggles {
|
|
235
|
+
display: flex;
|
|
236
|
+
gap: 6px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.report-panel .toggle-pill {
|
|
240
|
+
font-size: 12px;
|
|
241
|
+
padding: 2px 10px;
|
|
242
|
+
border-radius: 12px;
|
|
243
|
+
border: 1px solid #ccc;
|
|
244
|
+
background: #f0f0f0;
|
|
245
|
+
color: #666;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
transition: all 0.15s;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.report-panel .toggle-pill.active {
|
|
251
|
+
background: #4682b4;
|
|
252
|
+
border-color: #4682b4;
|
|
253
|
+
color: white;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.report-panel .toggle-pill:hover { border-color: #999; }
|
|
257
|
+
|
|
258
|
+
.report-panel .batch-stepper {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
gap: 4px;
|
|
262
|
+
font-size: 12px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.report-panel .batch-btn {
|
|
266
|
+
width: 22px;
|
|
267
|
+
height: 22px;
|
|
268
|
+
border-radius: 50%;
|
|
269
|
+
border: 1px solid #ccc;
|
|
270
|
+
background: #f0f0f0;
|
|
271
|
+
color: #555;
|
|
272
|
+
cursor: pointer;
|
|
273
|
+
font-size: 14px;
|
|
274
|
+
line-height: 1;
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
padding: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.report-panel .batch-btn:hover { border-color: #999; background: #e0e0e0; }
|
|
282
|
+
|
|
283
|
+
.report-panel .batch-label {
|
|
284
|
+
min-width: 80px;
|
|
285
|
+
text-align: center;
|
|
286
|
+
color: #555;
|
|
287
|
+
font-variant-numeric: tabular-nums;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.report-panel .plot-area {
|
|
291
|
+
display: flex;
|
|
292
|
+
justify-content: center;
|
|
293
|
+
align-items: center;
|
|
294
|
+
min-height: 300px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.report-panel .plot-area svg { overflow: visible; }
|
|
298
|
+
.report-panel .plot-area svg g[aria-label="x-axis label"] text { font-size: 14px; }
|
|
299
|
+
|
|
300
|
+
/* --- Equivalence margin zone --- */
|
|
301
|
+
.margin-zone { stroke: #f59e0b; opacity: .7 }
|
|
302
|
+
.margin-hatch-stroke { stroke: #f59e0b; stroke-width: 3.5; opacity: .7; }
|
|
303
|
+
|
|
304
|
+
/* --- CI region overlay opacity (light/dark aware) --- */
|
|
305
|
+
.ci-region { opacity: 0.55; }
|
|
306
|
+
.ci-region-strong { opacity: 0.65; }
|
|
307
|
+
.ci-region.ci-faster, .ci-region.ci-equivalent { opacity: 0.5; }
|
|
308
|
+
.ci-region-strong.ci-faster, .ci-region-strong.ci-equivalent { opacity: 0.55; }
|
|
309
|
+
.ci-unreliable { stroke: none; }
|
|
310
|
+
.dist-stroke { opacity: 0.35; }
|
|
311
|
+
.dist-fill { opacity: 0.08; }
|
|
312
|
+
|
|
313
|
+
/* --- Misc --- */
|
|
314
|
+
|
|
315
|
+
.report-panel .loading { color: #666; font-style: italic; padding: 20px; text-align: center; }
|
|
316
|
+
.report-panel .single-sample-notice { color: #999; font-style: italic; padding: 20px; text-align: center; }
|
|
317
|
+
.report-panel .error { color: #d32f2f; background: #ffebee; padding: 15px; border-radius: 4px; margin: 10px 0; }
|
|
318
|
+
|
|
319
|
+
.report-panel .ci-faster { color: #22c55e; }
|
|
320
|
+
.report-panel .ci-slower { color: #ef4444; }
|
|
321
|
+
.report-panel .ci-uncertain { color: #6b7280; }
|
|
322
|
+
|
|
323
|
+
.report-panel .empty-state {
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
justify-content: center;
|
|
327
|
+
height: 100%;
|
|
328
|
+
color: #999;
|
|
329
|
+
font-size: 15px;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.report-panel .empty-state code {
|
|
333
|
+
background: #e8e8e8;
|
|
334
|
+
padding: 2px 6px;
|
|
335
|
+
border-radius: 3px;
|
|
336
|
+
font-size: 13px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* --- Dark mode — system preference --- */
|
|
340
|
+
@media (prefers-color-scheme: dark) {
|
|
341
|
+
:root:not([data-theme="light"]) .report-panel { background: #181818; }
|
|
342
|
+
:root:not([data-theme="light"]) .report-panel .report-header { background: #252525; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
|
343
|
+
:root:not([data-theme="light"]) .report-panel .cli-args { color: #bbb; background: #333; }
|
|
344
|
+
:root:not([data-theme="light"]) .report-panel .metadata { color: #999; }
|
|
345
|
+
:root:not([data-theme="light"]) .report-panel .benchforge-version { color: #666; }
|
|
346
|
+
:root:not([data-theme="light"]) .report-panel .version-info { color: #999; }
|
|
347
|
+
:root:not([data-theme="light"]) .report-panel .group-header { border-color: #444; }
|
|
348
|
+
:root:not([data-theme="light"]) .report-panel .group-header h2 { color: #ccc; }
|
|
349
|
+
:root:not([data-theme="light"]) .report-panel .group-toggle { color: #666; }
|
|
350
|
+
:root:not([data-theme="light"]) .report-panel .section-panel { background: #252525; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
|
|
351
|
+
:root:not([data-theme="light"]) .report-panel .panel-header { color: #777; border-color: #333; }
|
|
352
|
+
:root:not([data-theme="light"]) .report-panel .row-label { color: #999; }
|
|
353
|
+
:root:not([data-theme="light"]) .report-panel .primary-row .row-label { color: #ccc; }
|
|
354
|
+
:root:not([data-theme="light"]) .report-panel .row-value,
|
|
355
|
+
:root:not([data-theme="light"]) .report-panel .run-value { color: #ddd; }
|
|
356
|
+
:root:not([data-theme="light"]) .report-panel .run-name { color: #777; }
|
|
357
|
+
:root:not([data-theme="light"]) .report-panel .toggle-pill { background: #333; border-color: #555; color: #aaa; }
|
|
358
|
+
:root:not([data-theme="light"]) .report-panel .toggle-pill.active { background: #4682b4; border-color: #4682b4; color: white; }
|
|
359
|
+
:root:not([data-theme="light"]) .report-panel .toggle-pill:hover { border-color: #777; }
|
|
360
|
+
:root:not([data-theme="light"]) .report-panel .batch-btn { background: #333; border-color: #555; color: #aaa; }
|
|
361
|
+
:root:not([data-theme="light"]) .report-panel .batch-btn:hover { border-color: #777; background: #444; }
|
|
362
|
+
:root:not([data-theme="light"]) .report-panel .batch-label { color: #aaa; }
|
|
363
|
+
:root:not([data-theme="light"]) .report-panel .plot-container { background: #252525; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
|
364
|
+
:root:not([data-theme="light"]) .report-panel .plot-title { color: #ddd; }
|
|
365
|
+
:root:not([data-theme="light"]) .report-panel .plot-description { color: #999; }
|
|
366
|
+
:root:not([data-theme="light"]) .report-panel .loading { color: #999; }
|
|
367
|
+
:root:not([data-theme="light"]) .report-panel .empty-state { color: #666; }
|
|
368
|
+
:root:not([data-theme="light"]) .report-panel .empty-state code { background: #333; }
|
|
369
|
+
:root:not([data-theme="light"]) .dist-stroke { opacity: 0.35; }
|
|
370
|
+
:root:not([data-theme="light"]) .dist-fill { opacity: 0.08; }
|
|
371
|
+
:root:not([data-theme="light"]) .report-panel .badge-faster { background: #166534; color: #bbf7d0; }
|
|
372
|
+
:root:not([data-theme="light"]) .report-panel .badge-slower { background: #991b1b; color: #fecaca; }
|
|
373
|
+
:root:not([data-theme="light"]) .report-panel .badge-uncertain { background: #1e40af; color: #bfdbfe; }
|
|
374
|
+
:root:not([data-theme="light"]) .report-panel .badge-equivalent { background: #166534; color: #bbf7d0; }
|
|
375
|
+
:root:not([data-theme="light"]) .margin-hatch-stroke { opacity: 0.65; }
|
|
376
|
+
:root:not([data-theme="light"]) .margin-zone { opacity: 0.65; }
|
|
377
|
+
:root:not([data-theme="light"]) .ci-region { opacity: 0.2; }
|
|
378
|
+
:root:not([data-theme="light"]) .ci-region-strong { opacity: 0.35; }
|
|
379
|
+
:root:not([data-theme="light"]) .ci-region.ci-faster,
|
|
380
|
+
:root:not([data-theme="light"]) .ci-region.ci-equivalent { opacity: 0.15; }
|
|
381
|
+
:root:not([data-theme="light"]) .ci-region-strong.ci-faster,
|
|
382
|
+
:root:not([data-theme="light"]) .ci-region-strong.ci-equivalent { opacity: 0.25; }
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* --- Dark mode — user forced --- */
|
|
386
|
+
:root[data-theme="dark"] .report-panel { background: #181818; }
|
|
387
|
+
:root[data-theme="dark"] .report-panel .report-header { background: #252525; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
|
388
|
+
:root[data-theme="dark"] .report-panel .cli-args { color: #bbb; background: #333; }
|
|
389
|
+
:root[data-theme="dark"] .report-panel .metadata { color: #999; }
|
|
390
|
+
:root[data-theme="dark"] .report-panel .benchforge-version { color: #666; }
|
|
391
|
+
:root[data-theme="dark"] .report-panel .version-info { color: #999; }
|
|
392
|
+
:root[data-theme="dark"] .report-panel .group-header { border-color: #444; }
|
|
393
|
+
:root[data-theme="dark"] .report-panel .group-header h2 { color: #ccc; }
|
|
394
|
+
:root[data-theme="dark"] .report-panel .group-toggle { color: #666; }
|
|
395
|
+
:root[data-theme="dark"] .report-panel .section-panel { background: #252525; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
|
|
396
|
+
:root[data-theme="dark"] .report-panel .panel-header { color: #777; border-color: #333; }
|
|
397
|
+
:root[data-theme="dark"] .report-panel .row-label { color: #999; }
|
|
398
|
+
:root[data-theme="dark"] .report-panel .primary-row .row-label { color: #ccc; }
|
|
399
|
+
:root[data-theme="dark"] .report-panel .row-value,
|
|
400
|
+
:root[data-theme="dark"] .report-panel .run-value { color: #ddd; }
|
|
401
|
+
:root[data-theme="dark"] .report-panel .run-name { color: #777; }
|
|
402
|
+
:root[data-theme="dark"] .report-panel .toggle-pill { background: #333; border-color: #555; color: #aaa; }
|
|
403
|
+
:root[data-theme="dark"] .report-panel .toggle-pill.active { background: #4682b4; border-color: #4682b4; color: white; }
|
|
404
|
+
:root[data-theme="dark"] .report-panel .toggle-pill:hover { border-color: #777; }
|
|
405
|
+
:root[data-theme="dark"] .report-panel .batch-btn { background: #333; border-color: #555; color: #aaa; }
|
|
406
|
+
:root[data-theme="dark"] .report-panel .batch-btn:hover { border-color: #777; background: #444; }
|
|
407
|
+
:root[data-theme="dark"] .report-panel .batch-label { color: #aaa; }
|
|
408
|
+
:root[data-theme="dark"] .report-panel .plot-container { background: #252525; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
|
409
|
+
:root[data-theme="dark"] .report-panel .plot-title { color: #ddd; }
|
|
410
|
+
:root[data-theme="dark"] .report-panel .plot-description { color: #999; }
|
|
411
|
+
:root[data-theme="dark"] .report-panel .loading { color: #999; }
|
|
412
|
+
:root[data-theme="dark"] .report-panel .empty-state { color: #666; }
|
|
413
|
+
:root[data-theme="dark"] .report-panel .empty-state code { background: #333; }
|
|
414
|
+
:root[data-theme="dark"] .dist-stroke { opacity: 0.35; }
|
|
415
|
+
:root[data-theme="dark"] .dist-fill { opacity: 0.08; }
|
|
416
|
+
:root[data-theme="dark"] .report-panel .badge-faster { background: #166534; color: #bbf7d0; }
|
|
417
|
+
:root[data-theme="dark"] .report-panel .badge-slower { background: #991b1b; color: #fecaca; }
|
|
418
|
+
:root[data-theme="dark"] .report-panel .badge-uncertain { background: #1e40af; color: #bfdbfe; }
|
|
419
|
+
:root[data-theme="dark"] .report-panel .badge-equivalent { background: #166534; color: #bbf7d0; }
|
|
420
|
+
:root[data-theme="dark"] .margin-hatch-stroke { opacity: 0.4; }
|
|
421
|
+
:root[data-theme="dark"] .margin-zone { opacity: 0.4; }
|
|
422
|
+
:root[data-theme="dark"] .ci-region { opacity: 0.2; }
|
|
423
|
+
:root[data-theme="dark"] .ci-region-strong { opacity: 0.35; }
|
|
424
|
+
:root[data-theme="dark"] .ci-region.ci-faster,
|
|
425
|
+
:root[data-theme="dark"] .ci-region.ci-equivalent { opacity: 0.15; }
|
|
426
|
+
:root[data-theme="dark"] .ci-region-strong.ci-faster,
|
|
427
|
+
:root[data-theme="dark"] .ci-region-strong.ci-equivalent { opacity: 0.25; }
|