nx_bench_v1_vs_v2_test.nx
buildroot/runtime/nx_bench_v1_vs_v2_test.nx
about
nx_bench_v1_vs_v2_test.nx -- first paired substrate measurement.
Per CARDINAL [[feedback-no-strawman-perf-comparisons]]: no perf
ratio without paired measurement. This smoke is the smallest
honest paired comparison:
ARM A: nx_actor_role_llm (manual 4-vocab embed+matmul+sample
pipeline, single token)
ARM B: nx_actor_role_llm_v2 (real Llama-class transformer
forward via nx_llm_generate_one_v2, single token)
Both arms drive the SAME prompt + SAME PRNG seed through the same
session shape (nx_session_new_default), then capture the substrate
counters into NxBenchReport. The delta tells the operator:
* How many actor steps each arm consumed
* How much cumulative runtime each arm reported
* How many messages each arm produced through the bus
HONEST SCOPE: this is NOT a wall-clock benchmark. qemu-riscv64 is
single-threaded; wall-clock comparisons are meaningless without
physical-hardware runs (Phase E queued). What this primitive
proves: the bench-capture substrate produces DETERMINISTIC paired
counters, so when Phase E + a llama.cpp comparison rig land, the
substrate already speaks the right language.
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_tensor.nxnx_actor.nxnx_message.nxnx_session.nxnx_bench_companion.nxnx_gguf_fixture_tiny.nxnx_actor_role_llm.nxnx_actor_role_llm_v2.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 38 | func _fill_q10(t: *NxTensor, base: i64, stride: i64) -> i64 called by 1: main |
| 48 | func main() -> i64 |