289 lines
8.8 KiB
Typst
289 lines
8.8 KiB
Typst
#import "data.typ": meta, hardware, suite, market, narrative
|
|
|
|
#set document(
|
|
title: "System Benchmark Report — " + meta.host,
|
|
author: meta.host,
|
|
date: none,
|
|
)
|
|
|
|
#set page(
|
|
paper: "a4",
|
|
margin: (x: 2cm, y: 2.1cm),
|
|
header: context {
|
|
if counter(page).get().first() > 1 {
|
|
set text(size: 8.5pt, fill: rgb("#5c6b7a"))
|
|
grid(
|
|
columns: (1fr, 1fr),
|
|
align(left)[Benchmark suite — #meta.host · #meta.focus],
|
|
align(right)[#meta.date],
|
|
)
|
|
v(-0.3em)
|
|
line(length: 100%, stroke: 0.4pt + rgb("#d0d7de"))
|
|
}
|
|
},
|
|
footer: context {
|
|
set text(size: 8.5pt, fill: rgb("#5c6b7a"))
|
|
line(length: 100%, stroke: 0.4pt + rgb("#d0d7de"))
|
|
v(-0.3em)
|
|
grid(
|
|
columns: (1fr, 1fr),
|
|
align(left)[#meta.suite · nixos-26.05],
|
|
align(right)[Page #counter(page).display() of #counter(page).final().first()],
|
|
)
|
|
},
|
|
)
|
|
|
|
#set text(font: "Liberation Sans", size: 10pt, fill: rgb("#1f2328"))
|
|
#set par(justify: true, leading: 0.65em)
|
|
#set heading(numbering: "1.1")
|
|
#show heading.where(level: 1): it => {
|
|
v(0.85em)
|
|
text(size: 14pt, weight: "bold", fill: rgb("#0b3d5c"))[#it.body]
|
|
v(0.2em)
|
|
line(length: 100%, stroke: 1.2pt + rgb("#0b3d5c"))
|
|
v(0.35em)
|
|
}
|
|
#show heading.where(level: 2): it => {
|
|
v(0.65em)
|
|
text(size: 11.5pt, weight: "bold", fill: rgb("#1f5f8b"))[#it.body]
|
|
v(0.2em)
|
|
}
|
|
|
|
#let chip(body, fill: rgb("#e8f1f8")) = box(
|
|
fill: fill,
|
|
inset: (x: 8pt, y: 4pt),
|
|
radius: 3pt,
|
|
text(size: 8.5pt, weight: "semibold", fill: rgb("#0b3d5c"))[#body],
|
|
)
|
|
|
|
#let callout(title, body, accent: rgb("#0b3d5c")) = block(
|
|
width: 100%,
|
|
fill: accent.lighten(92%),
|
|
stroke: (left: 3pt + accent),
|
|
inset: 11pt,
|
|
radius: 2pt,
|
|
{
|
|
text(weight: "bold", fill: accent)[#title]
|
|
v(0.3em)
|
|
body
|
|
},
|
|
)
|
|
|
|
#let kv(k, val) = grid(
|
|
columns: (2.5cm, 1fr),
|
|
column-gutter: 8pt,
|
|
text(fill: rgb("#5c6b7a"), size: 9pt)[#k],
|
|
text(weight: "medium", size: 9.5pt)[#val],
|
|
)
|
|
|
|
#let scorecard(title, value, sub) = block(
|
|
width: 100%,
|
|
fill: rgb("#f6f8fa"),
|
|
stroke: 0.5pt + rgb("#d0d7de"),
|
|
inset: 10pt,
|
|
radius: 4pt,
|
|
{
|
|
text(size: 8pt, fill: rgb("#5c6b7a"))[#title]
|
|
v(0.25em)
|
|
text(size: 16pt, weight: "bold", fill: rgb("#0b3d5c"))[#value]
|
|
v(0.12em)
|
|
text(size: 7.5pt, fill: rgb("#7a8793"))[#sub]
|
|
},
|
|
)
|
|
|
|
// ── Cover ──────────────────────────────────────────────
|
|
#align(center)[
|
|
#v(0.85cm)
|
|
#text(size: 11pt, fill: rgb("#5c6b7a"), tracking: 1.4pt)[REPRODUCIBLE LOCAL SUITE]
|
|
#v(0.45em)
|
|
#text(size: 24pt, weight: "bold", fill: rgb("#0b3d5c"))[System Benchmark Report]
|
|
#v(0.3em)
|
|
#text(size: 15pt, fill: rgb("#174a6e"))[#meta.host]
|
|
#v(0.55em)
|
|
#line(length: 38%, stroke: 1pt + rgb("#0b3d5c"))
|
|
#v(0.55em)
|
|
#chip[Suite #meta.date]
|
|
#h(6pt)
|
|
#chip(fill: rgb("#eef6ee"))[#meta.focus]
|
|
#if meta.preference != "" {
|
|
h(6pt)
|
|
chip(fill: rgb("#f8f0e8"))[#meta.preference]
|
|
}
|
|
#v(0.75em)
|
|
]
|
|
|
|
#if narrative.enabled [
|
|
#callout("Interpretation (compile-centric)", [
|
|
*#narrative.headline*
|
|
#v(0.35em)
|
|
#narrative.summary
|
|
#v(0.25em)
|
|
#text(size: 8pt, fill: rgb("#7a8793"))[Opinion layer in `report/data.typ` → `narrative` — not suite output. Swap or regenerate (COOKBOOK.md).]
|
|
])
|
|
] else [
|
|
#callout("About this report", [
|
|
Measured suite results only. Add an interpretation by filling `narrative` in `report/data.typ` (or via LLM — COOKBOOK.md).
|
|
])
|
|
]
|
|
|
|
#v(0.55em)
|
|
#grid(
|
|
columns: (1fr, 1fr, 1fr, 1fr),
|
|
column-gutter: 8pt,
|
|
scorecard("go build std", suite.go_build_std_cold_s + " s", "cold · CGO=0 · lower better"),
|
|
scorecard("cargo release", suite.cargo_release_recompile_s + " s", "full recompile · lower better"),
|
|
scorecard("gcc 96 TU par", suite.gcc_96tu_parallel_s + " s", "speedup " + suite.gcc_parallel_speedup),
|
|
scorecard("nix eval 500k", suite.nix_eval_foldl_500k_s + " s", "foldl · lower better"),
|
|
)
|
|
|
|
#pagebreak()
|
|
|
|
= Hardware
|
|
|
|
#grid(
|
|
columns: (1fr, 1fr),
|
|
column-gutter: 14pt,
|
|
{
|
|
kv("Host", meta.host)
|
|
kv("Date", meta.date)
|
|
kv("OS", meta.os)
|
|
kv("Suite", meta.suite)
|
|
kv("Board", hardware.motherboard)
|
|
},
|
|
{
|
|
kv("CPU", hardware.cpu)
|
|
kv("RAM", hardware.ram)
|
|
kv("GPU", hardware.gpu)
|
|
kv("Root / nix", hardware.storage_root)
|
|
kv("Games", hardware.storage_games)
|
|
},
|
|
)
|
|
|
|
= Suite results
|
|
|
|
Re-run: `nix develop -c ./scripts/suite.sh` → `raw/latest/summary.json`.
|
|
|
|
== Baseline CPU · memory · disk
|
|
|
|
#table(
|
|
columns: (1fr, 3.2cm),
|
|
inset: 7pt,
|
|
stroke: 0.4pt + rgb("#d0d7de"),
|
|
fill: (_, y) => if y == 0 { rgb("#174a6e") } else if calc.odd(y) { rgb("#f6f8fa") },
|
|
table.header(
|
|
text(fill: white, weight: "bold", size: 9pt)[Metric],
|
|
text(fill: white, weight: "bold", size: 9pt)[Result],
|
|
),
|
|
[sysbench CPU multi], text(weight: "bold")[#suite.sysbench_cpu_multi_eps eps],
|
|
[sysbench CPU single], text(weight: "bold")[#suite.sysbench_cpu_single_eps eps],
|
|
[7-Zip total MIPS], text(weight: "bold")[#suite.sevenzip_total_mips],
|
|
[mem read / write ST (MiB/s)], [#suite.mem_read_st_mibs / #suite.mem_write_st_mibs],
|
|
[fio seq read / write root (MiB/s)], text(weight: "bold")[#suite.fio_seqread_mibs / #suite.fio_seqwrite_mibs],
|
|
)
|
|
|
|
== Compile-oriented (primary)
|
|
|
|
#table(
|
|
columns: (1fr, 2.6cm, 1fr),
|
|
inset: 7pt,
|
|
stroke: 0.4pt + rgb("#d0d7de"),
|
|
fill: (_, y) => if y == 0 { rgb("#0b3d5c") } else if calc.odd(y) { rgb("#f6f8fa") },
|
|
table.header(
|
|
text(fill: white, weight: "bold", size: 9pt)[Test],
|
|
text(fill: white, weight: "bold", size: 9pt)[Result],
|
|
text(fill: white, weight: "bold", size: 9pt)[Maps to],
|
|
),
|
|
[`go build std` cold], text(weight: "bold")[#suite.go_build_std_cold_s s], [Go compile],
|
|
[`go build std` warm], [#suite.go_build_std_warm_s s], [Go cache hit],
|
|
[cargo release cold], text(weight: "bold")[#suite.cargo_release_cold_s s], [Rust clean-ish],
|
|
[cargo release recompile], text(weight: "bold")[#suite.cargo_release_recompile_s s], [Rust full rebuild],
|
|
[cargo incremental], [#suite.cargo_release_incremental_s s], [edit/rebuild loop],
|
|
[gcc 96 TU serial], [#suite.gcc_96tu_serial_s s], [nix single-job cc],
|
|
[gcc 96 TU parallel], text(weight: "bold")[#suite.gcc_96tu_parallel_s s], [nix -j many],
|
|
[parallel speedup], text(weight: "bold")[#suite.gcc_parallel_speedup], [thread efficiency],
|
|
[nix eval foldl 500k], text(weight: "bold")[#suite.nix_eval_foldl_500k_s s], [eval IPC],
|
|
[nix eval genList 2000], [#suite.nix_eval_genlist_2000_s s], [eval micro],
|
|
)
|
|
|
|
#v(0.35em)
|
|
#text(size: 8.5pt, fill: rgb("#5c6b7a"))[
|
|
Fixtures: `fixtures/rust-bench` (crate versions pinned with `=`), `fixtures/c-bench/work.c`. Lower seconds are better for compile rows.
|
|
]
|
|
|
|
#if narrative.enabled [
|
|
= Workload reading
|
|
|
|
== nixos-rebuild
|
|
|
|
#grid(
|
|
columns: (1fr, 1fr, 1fr),
|
|
column-gutter: 8pt,
|
|
callout("Eval", [#narrative.nix_eval], accent: rgb("#8a5a00")),
|
|
callout("Builds", [#narrative.nix_builds #text(weight: "semibold")[ (gcc speedup #suite.gcc_parallel_speedup)]], accent: rgb("#2f6f4e")),
|
|
callout("Store I/O", [#narrative.store_io #text(size: 8.5pt)[ (fio ~#suite.fio_seqread_mibs / #suite.fio_seqwrite_mibs MiB/s)]], accent: rgb("#0b3d5c")),
|
|
)
|
|
|
|
== Rust / cargo
|
|
|
|
#narrative.rust
|
|
|
|
== Go
|
|
|
|
#narrative.go
|
|
Cold `go build std`: *#suite.go_build_std_cold_s s*.
|
|
]
|
|
|
|
= Market context (#market.as_of)
|
|
|
|
#table(
|
|
columns: (1fr, 2.4cm, 2.8cm),
|
|
inset: 7pt,
|
|
stroke: 0.4pt + rgb("#d0d7de"),
|
|
fill: (_, y) => if y == 0 { rgb("#174a6e") } else if calc.odd(y) { rgb("#f6f8fa") },
|
|
table.header(
|
|
text(fill: white, weight: "bold", size: 9pt)[Reference],
|
|
text(fill: white, weight: "bold", size: 9pt)[Score],
|
|
text(fill: white, weight: "bold", size: 9pt)[vs this run],
|
|
),
|
|
[#market.cpu_mark_this_label], [#market.cpu_mark_this], [baseline],
|
|
[#market.cpu_mark_ref_label CPU Mark], [#market.cpu_mark_ref], [this ≈ #market.cpu_multi_ratio multi],
|
|
[#market.gpu_mark_this_label], [#market.gpu_mark_this], [—],
|
|
[#market.gpu_mark_ref_label], [#market.gpu_mark_ref], [this ≈ #market.gpu_ratio],
|
|
)
|
|
|
|
#if narrative.enabled [
|
|
#text(size: 8.5pt, fill: rgb("#5c6b7a"))[#narrative.market_note]
|
|
]
|
|
|
|
#if narrative.enabled [
|
|
= Paths forward
|
|
|
|
#callout("Default — aligned with stated preference", [
|
|
#narrative.default_path
|
|
], accent: rgb("#2f6f4e"))
|
|
|
|
#v(0.5em)
|
|
#callout("If rebuilds annoy you now", [
|
|
#enum(
|
|
..narrative.if_rebuilds_hurt.map(item => enum.item[#item]),
|
|
)
|
|
], accent: rgb("#8a5a00"))
|
|
]
|
|
|
|
= Reproduce
|
|
|
|
```
|
|
nix develop
|
|
./scripts/suite.sh # raw/<host>-<stamp>/summary.json
|
|
# refresh report/data.typ from summary (+ optional narrative)
|
|
make report # results/system-benchmark-report.pdf
|
|
```
|
|
|
|
Compare machines with `jq` on two `summary.json` files (COOKBOOK.md). Optional LLM narrative: COOKBOOK.md § _LLM-assisted notes_.
|
|
|
|
#v(1.0em)
|
|
#align(center)[
|
|
#text(size: 8.5pt, fill: rgb("#7a8793"))[
|
|
#meta.timestamp · #meta.host · local suite only · no cloud upload
|
|
]
|
|
]
|