aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/2026-10-18-counts.jsonl
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-18 16:44:17 +0100
committereunhhu <[email protected]>2026-10-18 16:44:17 +0100
commit241016b0fc3139414089619f0ef8cb7237722c6c (patch)
treeb782ed50757ee910278c8d1129dcfc7ded48d527 /research/experiments/041-batches/2026-10-18-counts.jsonl
parent433f56c29b26b83cd2991b4a834b427fae3e75d4 (diff)
downloadpure-241016b0fc3139414089619f0ef8cb7237722c6c.tar.gz
pure-241016b0fc3139414089619f0ef8cb7237722c6c.zip
Research 140, 027's stage 2c measured: JSON read into a tree by recursive descent (aup's examples/json_tree.aup: value(d, i) -> Json, number giving the value and where it ends, each call's own let's lists, string's escapes joined by char(u), a depth-first walk passing items as values) against Python's reading walked so: JSONTestSuite's 95 y_ taken alike, no n_ taken, 2b's 6 i_ taken (a lone surrogate refused by char as encoding); 100,000 and 50,000 deep refused as memory (the frames fill the event's room, 0.2 s), 30,000 deep taken (past Python's json); 300 random documents alike; in make check (module_specs' digest now depth first, three paths); 142 lines against the same design's 105 in Python (json_rec.py; the bar missed: 24 lines of declarations, 23 of braces), 46 times cJSON's time and 1.6 times plain Python's (600 ns a byte, 248 Pure instructions; 71% in the steps, about 10% in calls, 66,000 calls a document, most of them small block fns like skip); characters against Python's ord in aup's check; probes: p5-chars compiles, p4-rec (a view calling itself) refused; instruction counts: the workloads' modules the same, batches within 0.001% of 2b (BFS -0.21%), the executor alone -0.001% to +0.30%, the bank's queries -0.30% to +0.11% (four runs each; bar 1%); json_rec_time.c (cJSON, a depth-first digest compared first); CHECKPOINT's direction row through 2c
Diffstat (limited to 'research/experiments/041-batches/2026-10-18-counts.jsonl')
-rw-r--r--research/experiments/041-batches/2026-10-18-counts.jsonl20
1 files changed, 20 insertions, 0 deletions
diff --git a/research/experiments/041-batches/2026-10-18-counts.jsonl b/research/experiments/041-batches/2026-10-18-counts.jsonl
new file mode 100644
index 0000000..d1f5c4d
--- /dev/null
+++ b/research/experiments/041-batches/2026-10-18-counts.jsonl
@@ -0,0 +1,20 @@
+{"version":"b27","way":"batches","work":"matmul","instructions":713395360,"cycles":230040058}
+{"version":"b27","way":"rounds","work":"matmul","instructions":21265006173,"cycles":7306797350}
+{"version":"b27","way":"batches","work":"knapsack","instructions":348632565,"cycles":105675668}
+{"version":"b27","way":"rounds","work":"knapsack","instructions":21881484247,"cycles":8126458330}
+{"version":"b27","way":"batches","work":"roots","instructions":157304235,"cycles":109481210}
+{"version":"b27","way":"rounds","work":"roots","instructions":2719816869,"cycles":1107162486}
+{"version":"b27","way":"batches","work":"join","instructions":1783718427,"cycles":1025538655}
+{"version":"b27","way":"rounds","work":"join","instructions":7669671940,"cycles":3506384789}
+{"version":"b27","way":"batches","work":"bfs","instructions":3364523250,"cycles":1646034641}
+{"version":"b27","way":"rounds","work":"bfs","instructions":4726341201,"cycles":2095450104}
+{"version":"b26","way":"batches","work":"matmul","instructions":713390693,"cycles":229445239}
+{"version":"b26","way":"rounds","work":"matmul","instructions":21265242319,"cycles":7078307485}
+{"version":"b26","way":"batches","work":"knapsack","instructions":348629421,"cycles":105752256}
+{"version":"b26","way":"rounds","work":"knapsack","instructions":21816293868,"cycles":7885750723}
+{"version":"b26","way":"batches","work":"roots","instructions":157302159,"cycles":109456602}
+{"version":"b26","way":"rounds","work":"roots","instructions":2719815079,"cycles":1040127483}
+{"version":"b26","way":"batches","work":"join","instructions":1783717810,"cycles":1064908324}
+{"version":"b26","way":"rounds","work":"join","instructions":7659168467,"cycles":3373811804}
+{"version":"b26","way":"batches","work":"bfs","instructions":3371506688,"cycles":1643771467}
+{"version":"b26","way":"rounds","work":"bfs","instructions":4712039680,"cycles":2075728320}