From d83ccb2e3b3d276577c61b30a4a323909a654690 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 13 Oct 2026 06:27:01 +0100 Subject: Research 140: 2a's instruction counts: the workloads' modules the same, the executor alone within 0.14% of stage 1, the bank's queries +0.28% to +0.80% where they hold still and +0.17% to +0.45% on average where they do not (four runs each; bar 1%): step's four cases more, not the held slots emptied each event (left to modules that hold some, the counts the same) --- docs/research/140-spec-suite.md | 12 ++++++++++++ .../040-against-c/2026-10-13-counts-s24.jsonl | 4 ++++ .../040-against-c/2026-10-13-counts-s25.jsonl | 4 ++++ .../040-against-c/2026-10-13-counts-s25b.jsonl | 4 ++++ .../experiments/041-batches/2026-10-13-counts.jsonl | 20 ++++++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 research/experiments/040-against-c/2026-10-13-counts-s24.jsonl create mode 100644 research/experiments/040-against-c/2026-10-13-counts-s25.jsonl create mode 100644 research/experiments/040-against-c/2026-10-13-counts-s25b.jsonl diff --git a/docs/research/140-spec-suite.md b/docs/research/140-spec-suite.md index f4c6c48..6231c33 100644 --- a/docs/research/140-spec-suite.md +++ b/docs/research/140-spec-suite.md @@ -228,6 +228,18 @@ 찾기도 그대로다. - Pure, aup, Vega의 소스 가운데 빌드되는 36개를 전후로 견주었다. 달라진 것은 JSON 검사기 하나다. +**기존 일의 명령 수(2a).** +- b24(e0276bf)의 워크로드 모듈은 b22와 바이트까지 같다. +- 실행기만의 길에서 1단계(b22) 대비 knapsack이 +0.14%, 나머지 넷은 ±0.06% 안이다. b21 대비로는 1단계의 matmul +0.43%, BFS + −0.31%가 그대로 남는다. +- 은행 질의(s22 대 s25, 각 네 번)는 이렇다. + - 흔들림이 작은 넷(`large`, `none`, `field`, `found`)은 +0.28%에서 +0.80%로 꾸준히 늘었다. + - 흔들림이 큰 셋(`per_branch`, `in_credit`, `ranks`)은 평균 +0.17%에서 +0.45%다. 같은 빌드의 두 번 사이에서도 0.3–1% 오간다. + - 모두 막대(±1%) 안이다. + - 이벤트마다 칸 32개를 비우는 고리를 그 칸을 쓰는 모듈에만 두었지만(e38cb1c) 수는 그대로였다. 늘어난 몫은 `step`에 경우 넷이 + 더해진 데서 온다. 1단계와 같은 꼴이다. +- 원본: `041-batches/2026-10-13-counts.jsonl`(b24), `040-against-c/2026-10-13-counts-s24.jsonl`, `-s25.jsonl`, `-s25b.jsonl`. + **SHA-256 다시.** - 형식(`"{h0:08x}…"`)과 바이트 잇기(채움)로 다시 써 42줄(닫는 괄호만인 줄 5)이 됐다. 파이썬은 28줄이다. - 남은 차이는 리스트를 값으로 짓지 못해 생기는 것(메시지 스케줄의 미리 채움), 낱말 만들기, 선언이다. diff --git a/research/experiments/040-against-c/2026-10-13-counts-s24.jsonl b/research/experiments/040-against-c/2026-10-13-counts-s24.jsonl new file mode 100644 index 0000000..45c1f4c --- /dev/null +++ b/research/experiments/040-against-c/2026-10-13-counts-s24.jsonl @@ -0,0 +1,4 @@ +{"serve": "pure-serve", "per_branch": {"instructions": 27093751, "cycles": 12534748}, "in_credit": {"instructions": 3514203, "cycles": 1742688}, "large": {"instructions": 1418339, "cycles": 665148}, "ranks": {"instructions": 24457266, "cycles": 15354860}, "none": {"instructions": 615600, "cycles": 201126}, "field": {"instructions": 8986986, "cycles": 3375541}, "found": {"instructions": 14139987, "cycles": 11376915}} +{"serve": "pure-serve", "per_branch": {"instructions": 27065036, "cycles": 14972345}, "in_credit": {"instructions": 3508699, "cycles": 2563498}, "large": {"instructions": 1425977, "cycles": 938560}, "ranks": {"instructions": 24446453, "cycles": 16963503}, "none": {"instructions": 617405, "cycles": 206540}, "field": {"instructions": 9059199, "cycles": 3469248}, "found": {"instructions": 14212240, "cycles": 13913414}} +{"serve": "pure-serve", "per_branch": {"instructions": 26994258, "cycles": 14710358}, "in_credit": {"instructions": 3491765, "cycles": 2207170}, "large": {"instructions": 1418331, "cycles": 673219}, "ranks": {"instructions": 24401709, "cycles": 16071642}, "none": {"instructions": 615600, "cycles": 210823}, "field": {"instructions": 8987089, "cycles": 3398603}, "found": {"instructions": 14140307, "cycles": 12412633}} +{"serve": "pure-serve", "per_branch": {"instructions": 26954343, "cycles": 12125552}, "in_credit": {"instructions": 3484107, "cycles": 1658967}, "large": {"instructions": 1425929, "cycles": 639665}, "ranks": {"instructions": 24388670, "cycles": 15063657}, "none": {"instructions": 617310, "cycles": 203622}, "field": {"instructions": 9059208, "cycles": 3401440}, "found": {"instructions": 14210512, "cycles": 11549516}} diff --git a/research/experiments/040-against-c/2026-10-13-counts-s25.jsonl b/research/experiments/040-against-c/2026-10-13-counts-s25.jsonl new file mode 100644 index 0000000..af84750 --- /dev/null +++ b/research/experiments/040-against-c/2026-10-13-counts-s25.jsonl @@ -0,0 +1,4 @@ +{"serve": "pure-serve", "per_branch": {"instructions": 26956963, "cycles": 12464977}, "in_credit": {"instructions": 3483426, "cycles": 1751085}, "large": {"instructions": 1418315, "cycles": 694873}, "ranks": {"instructions": 24380321, "cycles": 15270048}, "none": {"instructions": 615600, "cycles": 203966}, "field": {"instructions": 8986987, "cycles": 3360427}, "found": {"instructions": 14139307, "cycles": 11305249}} +{"serve": "pure-serve", "per_branch": {"instructions": 27089562, "cycles": 12194450}, "in_credit": {"instructions": 3514242, "cycles": 1696502}, "large": {"instructions": 1426001, "cycles": 625487}, "ranks": {"instructions": 24460685, "cycles": 15212483}, "none": {"instructions": 617302, "cycles": 204428}, "field": {"instructions": 9059199, "cycles": 3387390}, "found": {"instructions": 14212191, "cycles": 11504332}} +{"serve": "pure-serve", "per_branch": {"instructions": 27024631, "cycles": 12490414}, "in_credit": {"instructions": 3498529, "cycles": 1676232}, "large": {"instructions": 1418291, "cycles": 624267}, "ranks": {"instructions": 24418160, "cycles": 14835320}, "none": {"instructions": 615600, "cycles": 194424}, "field": {"instructions": 8986986, "cycles": 3369150}, "found": {"instructions": 14139530, "cycles": 11169958}} +{"serve": "pure-serve", "per_branch": {"instructions": 27213575, "cycles": 12375055}, "in_credit": {"instructions": 3542271, "cycles": 1781435}, "large": {"instructions": 1425953, "cycles": 646040}, "ranks": {"instructions": 24528837, "cycles": 15399966}, "none": {"instructions": 617302, "cycles": 200235}, "field": {"instructions": 9059199, "cycles": 3384299}, "found": {"instructions": 14211112, "cycles": 11741616}} diff --git a/research/experiments/040-against-c/2026-10-13-counts-s25b.jsonl b/research/experiments/040-against-c/2026-10-13-counts-s25b.jsonl new file mode 100644 index 0000000..17af381 --- /dev/null +++ b/research/experiments/040-against-c/2026-10-13-counts-s25b.jsonl @@ -0,0 +1,4 @@ +{"serve": "pure-serve", "per_branch": {"instructions": 27184891, "cycles": 12279490}, "in_credit": {"instructions": 3534747, "cycles": 1787635}, "large": {"instructions": 1418371, "cycles": 664792}, "ranks": {"instructions": 24507597, "cycles": 14993809}, "none": {"instructions": 615608, "cycles": 191625}, "field": {"instructions": 8986994, "cycles": 3356007}, "found": {"instructions": 14140667, "cycles": 11141656}} +{"serve": "pure-serve", "per_branch": {"instructions": 27194121, "cycles": 12308008}, "in_credit": {"instructions": 3537786, "cycles": 1760801}, "large": {"instructions": 1426017, "cycles": 635191}, "ranks": {"instructions": 24517910, "cycles": 15039603}, "none": {"instructions": 617302, "cycles": 198102}, "field": {"instructions": 9059199, "cycles": 3377143}, "found": {"instructions": 14213584, "cycles": 11245666}} +{"serve": "pure-serve", "per_branch": {"instructions": 27157538, "cycles": 12484712}, "in_credit": {"instructions": 3528412, "cycles": 1573640}, "large": {"instructions": 1418339, "cycles": 648013}, "ranks": {"instructions": 24491252, "cycles": 15393901}, "none": {"instructions": 615600, "cycles": 201845}, "field": {"instructions": 8986986, "cycles": 3358644}, "found": {"instructions": 14138626, "cycles": 11303602}} +{"serve": "pure-serve", "per_branch": {"instructions": 27087285, "cycles": 12159194}, "in_credit": {"instructions": 3513859, "cycles": 1717495}, "large": {"instructions": 1425993, "cycles": 669522}, "ranks": {"instructions": 24459650, "cycles": 15480224}, "none": {"instructions": 617302, "cycles": 223435}, "field": {"instructions": 9059199, "cycles": 3396164}, "found": {"instructions": 14212608, "cycles": 11158023}} diff --git a/research/experiments/041-batches/2026-10-13-counts.jsonl b/research/experiments/041-batches/2026-10-13-counts.jsonl index 1ce2959..21c96c8 100644 --- a/research/experiments/041-batches/2026-10-13-counts.jsonl +++ b/research/experiments/041-batches/2026-10-13-counts.jsonl @@ -38,3 +38,23 @@ {"version":"b21","way":"rounds","work":"join","instructions":7669661569,"cycles":3593363686} {"version":"b21","way":"batches","work":"bfs","instructions":3358271260,"cycles":1692916302} {"version":"b21","way":"rounds","work":"bfs","instructions":4711634325,"cycles":2111516521} +{"version":"b24","way":"batches","work":"matmul","instructions":713386559,"cycles":230229806} +{"version":"b24","way":"rounds","work":"matmul","instructions":21529238824,"cycles":6820578673} +{"version":"b24","way":"batches","work":"knapsack","instructions":348626953,"cycles":106942166} +{"version":"b24","way":"rounds","work":"knapsack","instructions":21721478218,"cycles":7605312982} +{"version":"b24","way":"batches","work":"roots","instructions":157300382,"cycles":109565669} +{"version":"b24","way":"rounds","work":"roots","instructions":2756246663,"cycles":992377353} +{"version":"b24","way":"batches","work":"join","instructions":1783708877,"cycles":1101126933} +{"version":"b24","way":"rounds","work":"join","instructions":7673263074,"cycles":3516207061} +{"version":"b24","way":"batches","work":"bfs","instructions":3359486816,"cycles":1681515343} +{"version":"b24","way":"rounds","work":"bfs","instructions":4697038120,"cycles":2106085349} +{"version":"b22","way":"batches","work":"matmul","instructions":713384587,"cycles":233602857} +{"version":"b22","way":"rounds","work":"matmul","instructions":21529597022,"cycles":7145255885} +{"version":"b22","way":"batches","work":"knapsack","instructions":348623758,"cycles":105485751} +{"version":"b22","way":"rounds","work":"knapsack","instructions":21692082059,"cycles":7894344443} +{"version":"b22","way":"batches","work":"roots","instructions":157299317,"cycles":109572620} +{"version":"b22","way":"rounds","work":"roots","instructions":2755945627,"cycles":1060498300} +{"version":"b22","way":"batches","work":"join","instructions":1783709013,"cycles":1261984905} +{"version":"b22","way":"rounds","work":"join","instructions":7671461339,"cycles":3779172383} +{"version":"b22","way":"batches","work":"bfs","instructions":3369486682,"cycles":1696184951} +{"version":"b22","way":"rounds","work":"bfs","instructions":4699835166,"cycles":2145127934} -- cgit v1.2.3