From 010fa06adc3b05e3e164309ee34e200f5d858fa2 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 13 Oct 2026 07:40:30 +0100 Subject: Research 140, 027's stage 2b measured: JSON read into a tree (aup's examples/json_tree.aup: a variant, lists in records, match, appends into a field's list, number(t)) and walked for a digest, against Python's reading: JSONTestSuite's 95 y_ taken alike, no n_ taken, 6 i_ taken; 300 random nested documents alike; in make check (module_specs, the suite and 100 random documents, three paths); 167 lines against the same design's 133 in Python (the bar missed: the type declarations), 40 times cJSON's time and 1.3 times plain Python's (556 ns a byte, 525 instructions); json_tree.py, json_tree_time.c (cJSON linked, digests compared first) --- research/experiments/044-specs/2026-10-13-stage2b.jsonl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 research/experiments/044-specs/2026-10-13-stage2b.jsonl (limited to 'research/experiments/044-specs/2026-10-13-stage2b.jsonl') diff --git a/research/experiments/044-specs/2026-10-13-stage2b.jsonl b/research/experiments/044-specs/2026-10-13-stage2b.jsonl new file mode 100644 index 0000000..27de90b --- /dev/null +++ b/research/experiments/044-specs/2026-10-13-stage2b.jsonl @@ -0,0 +1,6 @@ +{"size":103781,"jit":"0","batch":"0","c_ns_per_byte":14.717,"pure_ns_per_byte":554.145,"ratio":37.7,"instructions":54505171,"instructions_per_byte":525.2} +{"size":103781,"jit":"0","batch":"","c_ns_per_byte":13.756,"pure_ns_per_byte":555.296,"ratio":40.4,"instructions":54505171,"instructions_per_byte":525.2} +{"size":103781,"jit":"all","batch":"","c_ns_per_byte":14.223,"pure_ns_per_byte":555.444,"ratio":39.1,"instructions":54505171,"instructions_per_byte":525.2} +{"size":103781,"jit":"","batch":"","c_ns_per_byte":13.899,"pure_ns_per_byte":555.628,"ratio":40.0,"instructions":54505171,"instructions_per_byte":525.2} +{"size":103781,"python_ns_per_byte":426.5,"python_json_module_ns_per_byte":62.3} +{"json_tree_aup_lines": 167, "aup_brace_lines": 20, "python_lines": 133, "jsontestsuite": {"y_taken": 95, "n_taken": 0, "i_taken": 6}, "random_documents": 300, "wrong": 0} -- cgit v1.2.3