code wiki / (root) / bench_emit.nx

bench_emit.nx

buildroot/runtime/bench_emit.nx

2646 B106 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind benchtopic bench
docsdependenciesstructsconstsfunctions

about

bench_emit.nx -- stream workload through OUR primitives, emit numbers to stdout. Used by the cross-implementation harness (bench_vs_ds.sh). Writes key=value lines to stdout that the harness parses and compares against Apache DataSketches output.

dependencies 3 imports · 0 importers

syscalls.nx sketch_hll.nx sketch_cpc_dense.nx bench_emit.nx

imports: syscalls.nxsketch_hll.nxsketch_cpc_dense.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_hll_alloc nx_cpcd_alloc nx_hll_add murmur3_32 mm_load_u32_le mm_rotl32 nx_clz32 nx_bits_clz32 nx_cpcd_add nx_cpcd_coupon_pos murmur3_32 ↻ nx_cpcd_clz32 nx_bits_clz32 ↻ nx_cpcd_bit_get nx_cpcd_bit_set nx_emit_str nx_emit_i64 nx_emit_putc nx_emit_i64 ↻ nx_hll_estimate nx_hll_pow2_neg_q32 nx_hll_alpha_m_sq_q64 nx_hll_bias_table_n nx_hll_bias_table_get nx_hll_bias_lgk4 nx_hll_bias_lgk5 nx_hll_bias_lgk6 nx_hll_bias_lgk7 nx_hll_bias_lgk8 nx_hll_bias_lgk9 nx_hll_bias_lgk10 nx_hll_log2_ppm nx_hll_bias_correct nx_hll_bias_table_n ↻ nx_hll_bias_table_get ↻ nx_mulshl_div_i64 nx_i128_alloc nx_i128_mul_i64 nx_i128_mul_u64

structs

none

consts

none

functions

13func nx_emit_putc(c: i64) -> i64 {
20func nx_emit_str(s: *u8, len: i64) -> i64 {
called by 1: main
25func nx_emit_i64(n: i64) -> i64 {
51func nx_emit_newline() -> i64 {
called by 1: main calls 1: nx_emit_putc
58func main() -> i64 {