code wiki / _hdl_build / nx_js_realbench.nx
nx_js_realbench.nx
buildroot/runtime/_hdl_build/nx_js_realbench.nx
about
nx_js_realbench.nx -- CAPSTONE of the JIT arc: realistic BUNDLE-SHAPED programs (the composition of
features real page/app code uses -- constructors+new, methods+this, arrays of objects, higher-order
functions taking closures, string building, modulo/ternary, nested loops, recursion) run through the
TREE-WALKER (js_run_source) vs the VM/JIT (compile_run). Proves (A) identical results on multi-feature
programs -- a broader integration test than the micro-kernels, catching feature-interaction bugs -- and
(B) the end-to-end speedup that BREAKS the ~1000x-too-slow tree-walker wall which stalled real bundles.
This is the honest "the sovereign engine can now run real code fast" measurement. expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_js_vm.nxnx_itoa_lib.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
| 12 | func rb_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 17 | func rb_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 19 | func rb_time(src: *u8, engine: i64, out: *i64) -> i64 |
| 35 | func rb_case(src: *u8, label: *u8, pp: *i64, tp: *i64) -> i64 |
| 70 | func main(argc: i64, argv: *i64) -> i64 |