code wiki / (root) / nx_benchtools_research.nx

nx_benchtools_research.nx source

↩ module page · 25 lines · 1739 B

1// nx_benchtools_research.nx -- THIN structured BENCHMARK-TOOLS research source organ (the real speed/capability 2// yardsticks: MLPerf/SPEC/Phoronix/Geekbench/3DMark). COMPOSES nx_research_engine; sources under SECTIONS, NO 3// copy-pasted loop. Supersedes nx_bench_tools_research_fetch. expect_exit: 0 license_tier: ORIGINAL 4import "nx_research_engine.nx" 5const K_MAGIC_8388608: i64 = 8388608 6 7func main() -> i64 { 8 let store: *TrustStore = rf_init() 9 if (store as i64) == 0 { rf_puts("benchtools: trust store load failed\n" as *u8); return 1 } 10 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- BENCHMARK-TOOLS research -> Library\n" as *u8) 11 let cap: i64 = K_MAGIC_8388608 12 let out: *u8 = sys_mmap(cap) 13 var ok: i64 = 0 14 15 rf_section("speed/capability benchmark suites (the yardsticks to measure exceed against)" as *u8) 16 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/MLPerf" as *u8, "bt_mlperf" as *u8, store, out, cap) 17 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Standard_Performance_Evaluation_Corporation" as *u8, "bt_spec" as *u8, store, out, cap) 18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Phoronix_Test_Suite" as *u8, "bt_phoronix" as *u8, store, out, cap) 19 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Geekbench" as *u8, "bt_geekbench" as *u8, store, out, cap) 20 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/3DMark" as *u8, "bt_3dmark" as *u8, store, out, cap) 21 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Benchmark_(computing)" as *u8, "bt_benchmark" as *u8, store, out, cap) 22 23 rf_puts("BENCHTOOLS BANKED: "); rf_putn(ok); rf_puts(" / 6 (run nx_library_harvest_v2 to index)\n" as *u8) 24 return 0 25}