diff --git a/branding/logo-1024.png b/branding/logo-1024.png new file mode 100644 index 0000000..b3e59db Binary files /dev/null and b/branding/logo-1024.png differ diff --git a/branding/logo.svg b/branding/logo.svg new file mode 100644 index 0000000..9eaa3e1 --- /dev/null +++ b/branding/logo.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png index 24045aa..b0b2ca6 100644 Binary files a/src-tauri/icons/128x128.png and b/src-tauri/icons/128x128.png differ diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png index 4a537e1..1b7ba70 100644 Binary files a/src-tauri/icons/128x128@2x.png and b/src-tauri/icons/128x128@2x.png differ diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png index 9c0ad67..08f3610 100644 Binary files a/src-tauri/icons/32x32.png and b/src-tauri/icons/32x32.png differ diff --git a/src-tauri/icons/Square107x107Logo.png b/src-tauri/icons/Square107x107Logo.png index 8266f1b..a79aa82 100644 Binary files a/src-tauri/icons/Square107x107Logo.png and b/src-tauri/icons/Square107x107Logo.png differ diff --git a/src-tauri/icons/Square142x142Logo.png b/src-tauri/icons/Square142x142Logo.png index 6037658..5e8cdd0 100644 Binary files a/src-tauri/icons/Square142x142Logo.png and b/src-tauri/icons/Square142x142Logo.png differ diff --git a/src-tauri/icons/Square150x150Logo.png b/src-tauri/icons/Square150x150Logo.png index 06102e1..608685f 100644 Binary files a/src-tauri/icons/Square150x150Logo.png and b/src-tauri/icons/Square150x150Logo.png differ diff --git a/src-tauri/icons/Square284x284Logo.png b/src-tauri/icons/Square284x284Logo.png index 37bec18..9b39817 100644 Binary files a/src-tauri/icons/Square284x284Logo.png and b/src-tauri/icons/Square284x284Logo.png differ diff --git a/src-tauri/icons/Square30x30Logo.png b/src-tauri/icons/Square30x30Logo.png index bcfb4b7..5a52519 100644 Binary files a/src-tauri/icons/Square30x30Logo.png and b/src-tauri/icons/Square30x30Logo.png differ diff --git a/src-tauri/icons/Square310x310Logo.png b/src-tauri/icons/Square310x310Logo.png index 45eabe5..83a21ae 100644 Binary files a/src-tauri/icons/Square310x310Logo.png and b/src-tauri/icons/Square310x310Logo.png differ diff --git a/src-tauri/icons/Square44x44Logo.png b/src-tauri/icons/Square44x44Logo.png index d10c199..dc08b02 100644 Binary files a/src-tauri/icons/Square44x44Logo.png and b/src-tauri/icons/Square44x44Logo.png differ diff --git a/src-tauri/icons/Square71x71Logo.png b/src-tauri/icons/Square71x71Logo.png index b17590f..126691c 100644 Binary files a/src-tauri/icons/Square71x71Logo.png and b/src-tauri/icons/Square71x71Logo.png differ diff --git a/src-tauri/icons/Square89x89Logo.png b/src-tauri/icons/Square89x89Logo.png index fadd836..984063d 100644 Binary files a/src-tauri/icons/Square89x89Logo.png and b/src-tauri/icons/Square89x89Logo.png differ diff --git a/src-tauri/icons/StoreLogo.png b/src-tauri/icons/StoreLogo.png index 5ac2347..cebe774 100644 Binary files a/src-tauri/icons/StoreLogo.png and b/src-tauri/icons/StoreLogo.png differ diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns index 12a5bce..9de6db0 100644 Binary files a/src-tauri/icons/icon.icns and b/src-tauri/icons/icon.icns differ diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico index 06c23c8..82284cc 100644 Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png index 8b1c465..7192bb2 100644 Binary files a/src-tauri/icons/icon.png and b/src-tauri/icons/icon.png differ diff --git a/src-tauri/src/ranking.rs b/src-tauri/src/ranking.rs index 67262c3..87b9996 100644 --- a/src-tauri/src/ranking.rs +++ b/src-tauri/src/ranking.rs @@ -46,6 +46,9 @@ pub struct ModelRank { pub successes: usize, pub median_duration_ms: u128, pub mean_completion_tokens: f64, + /// Median der Tokens pro Sekunde über die Läufe (Tokens geteilt durch die gesamte Laufzeit, + /// also inklusive Tool- und Prüfzeit, nicht die reine Erzeugungsgeschwindigkeit). + pub median_tps: Option, } #[derive(Debug, Clone, PartialEq, Serialize)] @@ -177,6 +180,16 @@ pub fn compute(batch_id: i64, all_runs: &[RunRecord], tasks: &BTreeMap() / rs.len() as f64; + let mut tps: Vec = rs.iter().filter_map(|r| r.tps).filter(|t| t.is_finite()).collect(); + tps.sort_by(|a, b| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)); + let median_tps = if tps.is_empty() { + None + } else if tps.len() % 2 == 1 { + Some(tps[tps.len() / 2]) + } else { + Some((tps[tps.len() / 2 - 1] + tps[tps.len() / 2]) / 2.0) + }; + ModelRank { rank: 0, model: model.to_string(), @@ -187,6 +200,7 @@ pub fn compute(batch_id: i64, all_runs: &[RunRecord], tasks: &BTreeMap - + + coding-bench %sveltekit.head% diff --git a/src/lib/ResultsPanel.svelte b/src/lib/ResultsPanel.svelte index 9b539ed..5638982 100644 --- a/src/lib/ResultsPanel.svelte +++ b/src/lib/ResultsPanel.svelte @@ -5,6 +5,7 @@ errorLabel, fmtDuration, fmtPct, + fmtTps, isInfrastructure, groupLabel, pctColor, @@ -96,56 +97,52 @@ {#if loading}

Lade …

{/if} {#if ranking && ranking.models.length > 0} -
- - - - - - - {#each ranking.groups as g (g)} - - {/each} - - - - - - - {#each ranking.models as m (m.model)} - - - - - {#each m.groups as g (g.group)} - - {/each} - - - - - {/each} - -
#ModellGesamt{g}
{groupLabel(g)}
Schwächster BereichBestandenMedian-Dauer
{m.rank}{m.model} -
{fmtPct(m.total_percent)}
-
-
+
+ {#each ranking.models as m (m.model)} +
+
{m.rank}
+
+

{m.model}

+
+ ✔ {m.successes}/{m.runs} + ⏱ {fmtDuration(m.median_duration_ms)} + ⚡ {fmtTps(m.median_tps)} + ∅ {Math.round(m.mean_completion_tokens)} Tokens +
+
+
+
{fmtPct(m.total_percent)}
+
Gesamt
+
+
+ {#each m.groups as g (g.group)} +
+
+ {g.group} {groupLabel(g.group)} {#if g.percent === null} – {:else} -
{fmtPct(g.percent)}
-
-
- {g.tasks} Aufg.{g.tasks < FEW_TASKS ? " (grob)" : ""} -
+ {fmtPct(g.percent)} {/if} -
- {#if m.weakest_group} - {m.weakest_group} · {groupLabel(m.weakest_group)} - {:else} - – + +
+ {#if g.percent !== null} +
+ {/if} +
+ {#if g.percent !== null} +
+ {g.tasks} Aufg.{g.tasks < FEW_TASKS ? " (grob)" : ""} +
{/if} -
{m.successes} / {m.runs}{fmtDuration(m.median_duration_ms)}
+
+ {/each} + + {#if m.weakest_group} +
Schwächster Bereich: {m.weakest_group} · {groupLabel(m.weakest_group)}
+ {/if} + + {/each} {#if ranking.excluded_runs > 0} @@ -291,42 +288,86 @@ overflow-x: auto; margin-bottom: 1rem; } - .rank td, - .rank th { - vertical-align: top; - } .matrix th { text-transform: none; } - .rank .total { - min-width: 7.5rem; + .board { + display: grid; + gap: 0.9rem; + margin-bottom: 1.2rem; } - .rank .grp { - min-width: 6rem; + .mcard { + position: relative; + display: grid; + grid-template-columns: auto 1fr auto; + grid-template-areas: + "badge head total" + "groups groups groups" + "weak weak weak"; + gap: 0.4rem 1rem; + align-items: center; + padding: 1rem 1.2rem; + background: var(--surface-2); + border: 1px solid var(--border); + border-radius: 12px; } - .gl { - font-weight: 400; - text-transform: none; - letter-spacing: 0; + .mcard[data-rank="1"] { + border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); + background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, var(--surface-2)), var(--surface-2) 60%); } + .badge { + grid-area: badge; + width: 2.6rem; + height: 2.6rem; + border-radius: 50%; + display: grid; + place-items: center; + font-weight: 800; + font-size: 1.15rem; + color: #1a1005; + background: var(--muted); + } + .badge.r1 { background: var(--gold); } + .badge.r2 { background: var(--silver); } + .badge.r3 { background: var(--bronze); } + .badge.r4 { background: var(--surface); color: var(--muted); border: 1px solid var(--border); } + .mhead { grid-area: head; min-width: 0; } + .mname { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; } + .stats { + display: flex; + flex-wrap: wrap; + gap: 0.2rem 1rem; + color: var(--muted); + font-size: 0.85rem; + font-variant-numeric: tabular-nums; + } + .total { grid-area: total; text-align: right; } + .total .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; } + .groups { + grid-area: groups; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); + gap: 0.7rem 1.2rem; + margin-top: 0.6rem; + } + .gtop { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; } + .gtop b { color: var(--accent); } + .weak { grid-area: weak; font-size: 0.8rem; color: var(--muted); } .pct { font-weight: 700; font-variant-numeric: tabular-nums; } .pct.big { - font-size: 1.6rem; - line-height: 1.1; + font-size: 2.2rem; + line-height: 1; } .meter { height: 7px; - background: var(--surface-2); + background: var(--bg); border-radius: 999px; overflow: hidden; margin: 0.25rem 0; } - .meter.small { - height: 5px; - } .meter > div { height: 100%; } diff --git a/src/lib/api.ts b/src/lib/api.ts index 5b95194..26e99c9 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -65,6 +65,7 @@ export type ModelRank = { successes: number; median_duration_ms: number; mean_completion_tokens: number; + median_tps: number | null; }; export type MatrixCell = { model: string; task_id: string; runs: number; successes: number; mean_score: number }; export type TaskColumn = { id: string; group: string }; @@ -142,7 +143,7 @@ export function groupLabel(g: string): string { /** Farbe für einen Prozentwert: rot bei 0, gelb in der Mitte, grün bei 100. */ export function pctColor(p: number): string { const hue = Math.max(0, Math.min(100, p)) * 1.2; - return `hsl(${hue} 60% 42%)`; + return `hsl(${hue} 72% var(--pct-l, 56%))`; } export function fmtPct(p: number | null): string { @@ -153,3 +154,7 @@ export function fmtDuration(ms: number): string { const s = ms / 1000; return s < 90 ? `${s.toFixed(1)} s` : `${Math.floor(s / 60)} min ${Math.round(s % 60)} s`; } + +export function fmtTps(t: number | null): string { + return t === null ? "–" : `${t < 10 ? t.toFixed(1) : Math.round(t)} Tok/s`; +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d454437..8a993f2 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -20,8 +20,6 @@ try { [models, tasks, paths] = await Promise.all([api.models(), api.tasks(), api.paths()]); runtime = await api.runtime(); - // Ohne Modell beginnt man bei den Einstellungen. - if (models.length === 0) tab = "settings"; } catch (e) { loadError = String(e); } finally { @@ -43,7 +41,18 @@
- +