Comprehensive syscall & subsystem microbenchmark suite, Linux x86-64 comparison baselines, and syscall coverage tracker for Nilix OS.
bench/nilix_syscall_bench.c— Single static musl C suite running 110 microbenchmarks across 8 subsystems (proc,time,vfs_meta,vfs_io,mm,ipc,signal,net) identically on both Host Linux and Nilix.baselines/— Machine-readable JSON baselines:linux_host.json— Native Host Linux referencenilix_kvm_4vcpu.json— Nilix 4-vCPU KVM (qemu64,+smep,+smap,+umip,+rdrand,+rdtscp)nilix_kvm_4vcpu_hw.json— Nilix 4-vCPU KVM + HW features (+pcid,+invpcid,+ssse3,+sse4.1,+sha-ni,+erms,+fsrm)
catalog/syscalls.json&docs/syscall-gap.md— Complete 386-entry Linux x86-64 syscall coverage matrix & prioritized missing-syscall roadmap (P0/P1/P2/P3).reports/latest_comparison.md— Full 110-benchmark side-by-side table & Top-15 optimization targets.
- Syscall coverage: 222 / 386 (57.51%) Linux x86-64 ABI + 24 Nilix native extensions
- Benchmarks measured: 110 on Nilix HW (
8beat Host Linux,16at>= 0.80xparity)
| Canonical Benchmark | Host Linux | Nilix kvm_4vcpu |
Nilix kvm_4vcpu_hw |
HW vs Host |
|---|---|---|---|---|
getpid_ns |
110 ns | 716 ns | 354 ns | 0.31x |
ctx_switch_pipe_ns |
2,857 ns | 1,961 ns | 1,590 ns | 1.80x |
page_fault_anon_4k_ns |
1,391 ns | 2,121 ns | 1,843 ns | 0.75x |
mmap_touch_munmap_ops_sec |
257,433 ops/s | 202,848 ops/s | 306,139 ops/s | 1.19x |
open_read_close_ops_sec |
672,357 ops/s | 178,968 ops/s | 370,242 ops/s | 0.55x |
epoll_pipe_rtt_ns |
808 ns | 3,897 ns | 2,268 ns | 0.36x |
unix_stream_64k_mbps |
44,402 Mbps | 45,227 Mbps | 53,839 Mbps | 1.21x |
tcp_loopback_64k_mbps |
31,435 Mbps | 38,434 Mbps | 36,294 Mbps | 1.15x |
See the complete 110-benchmark report in reports/latest_comparison.md and the full syscall gap tracker in docs/syscall-gap.md.
# 1. Run Host Linux baseline
python3 scripts/run_bench.py --target host --out baselines/linux_host.json
# 2. Run Nilix dual-profile KVM baselines (from a Nilix build with esp-busybox)
python3 scripts/run_bench.py --target nilix \
--nilix-repo /path/to/Nilix \
--esp /path/to/Nilix/esp-busybox \
--busybox /path/to/Nilix/target/conformance/build/busybox/busybox \
--profile kvm_4vcpu_hw --out baselines/nilix_kvm_4vcpu_hw.json
# 3. Run a single subsystem suite while iterating on optimizations
python3 scripts/run_bench.py --target nilix --suite vfs_meta ...
# 4. Re-sync syscall catalog & regenerate markdown reports
python3 scripts/sync_syscall_catalog.py --nilix-repo /path/to/Nilix
python3 scripts/generate_report.pyMIT — see LICENSE.