5 new diagrams (Graphviz DOT → PNG): benchmark-ack.dot — ack(3,4) across all 5 tiers benchmark-sumto.dot — sum-to(50k) across all 5 tiers benchmark-fib.dot — fib(35) iterative across all 5 tiers benchmark-speedup.dot — JIT speedup ratios (7x-784x) benchmark-binary-size.dot — 13KB asm vs 171KB C vs ~30MB Python JIT: 0.19ms ack, 7x faster than CPython, 784x faster than Python VM. Makefile docs target now auto-discovers all docs/*.dot files.
17 lines
705 B
Text
17 lines
705 B
Text
// Binary size comparison
|
|
// "A diagram is worth 10,000 words." — russell@unturf.com
|
|
digraph binary_size {
|
|
rankdir=LR
|
|
node [shape=record, style=filled, fontname="Helvetica", fontsize=11]
|
|
edge [style=invis]
|
|
label="Binary size / footprint (smaller is leaner)"
|
|
labelloc=t
|
|
fontsize=14
|
|
fontname="Helvetica Bold"
|
|
|
|
asm [label="{Assembly|13 KB\n1.8 MB resident\nzero dependencies}" fillcolor="#6c5ce7" fontcolor=white width=1.5]
|
|
c [label="{C + JIT|171 KB\n~4 MB resident\nlibc only}" fillcolor="#00b894" fontcolor=white width=3.0]
|
|
py [label="{Python VM|3,324 lines\n~30 MB resident\nPython 3 runtime}" fillcolor="#e17055" fontcolor=white width=6.0]
|
|
|
|
asm -> c -> py
|
|
}
|