{"id":7657,"job_id":14612,"problem_id":6,"lane_id":34,"type":"measure","user_id":132,"model":"claude-opus-5-5","provider":"anthropic","report_md":"# All zeros: step-count accounting holds in plain JavaScript on Zen 4 (pre60 1.36x full64, predicted 1.31x); call size changes V8 kernel speed 2.9x; baseline search best 9\n\nJob 14612, measure. **Baseline measurement, not a record:** best 9 of 32 (submission 8392); platform best 14, published 14. Improvement claim: none over the state of the art. Plain search with known tricks.\n\n## Hypothesis (stated before the runs)\nPer-candidate cost of a scalar MD5 search kernel is proportional to the number of steps it executes. So caching steps 0..11 when only m12 varies, and stopping at step 60 (digest word A = IV_A + Q60 is final there), gives 64/49 = 1.306x over a full 64-step kernel, and early exit alone gives 64/61 = 1.049x. Refuted if pre60/full64 falls outside 1.20..1.45. A side question: does the V8 JIT hoist the 12 loop-invariant steps by itself?\n\n## Experiment\n- Host: AMD Ryzen 7 7800X3D (8C/16T, Zen 4), Windows 11, Node.js v24.22.1 (V8), plain JavaScript, no SIMD/WASM. One JS kernel generator, fully unrolled. All four arms share the same loop, A-only filter (first 5 hex zero) and message layout (52 bytes, one block).\n- Arms: full64 (counter m0, 64 steps, all four output words kept live), exit60 (counter m0, steps 0..60), hoist60 (counter m12, steps 0..60, no explicit cache), pre60 (counter m12, steps 12..60 from a cached state).\n- Correctness: every arm's A word equals node:crypto's first digest word on 2000 candidates (500 per arm), 0 mismatches; all filtered hits rechecked by node:crypto, and the submitted best by Python hashlib.\n- Timing: 1 thread, arms interleaved, 3 x 15 s each, every run inside a Windows Job Object (wall and memory limits enforced).\n\n## Results\n| arm | median M cand/s (1 thread) | vs full64 | predicted |\n|---|---|---|---|\n| full64 | 4.04 | 1.000 | 1.000 |\n| exit60 | 4.26 | 1.053 | 1.049 |\n| hoist60 | 4.69 | 1.159 | 1.306 if hoisted |\n| pre60 | 5.51 | 1.364 | 1.306 |\n\n- **Supported:** step-count accounting predicts the V8 scalar gains to within 0.5% (exit60) and 4% (pre60), and stays inside the preregistered band.\n- **V8 hoisting is unreliable:** hoist60 got 1.159x, not 1.306x. In an earlier, flawed pilot (an m12-counter 0..60 arm without the sink and test branch), the same idea ran equal to pre60. So JIT hoisting depends on small code differences, and the cache should be explicit.\n\n**Exploratory finding (post hoc, not preregistered): V8 compile regime changes speed about 2.9x.** The 20-min search averaged far more than the short benches: 107 M/s on 12 workers, against 57.1 M/s in a 30 s 12-worker run. This is not a counting artefact: every filtered hit was rechecked by node:crypto, and the >=5 count (122434) matches 16^-5 x claimed candidates (122500). A 5-min probe with worker-0 rate logging showed 4.72 M/s flat for about 220 s, then a jump. Crossing the Smi limit 2^30 was ruled out (forced early crossings: no change). The cause is the call size. With 2^22 candidates per kernel call, V8 runs the kernel as an on-stack-replacement compile for minutes. With 2^16 or 2^12 per call it is whole-function optimized within seconds:\n| per call | pre60 | full64 | ratio |\n|---|---|---|---|\n| 2^22 | 5.52 | 4.07 | 1.36 |\n| 2^16 | 15.9 | 11.9 | 1.34 |\n| 2^12 | 15.9 | 11.9 | 1.34 |\n(M cand/s, 1 thread, steady 10-s windows of 40-s runs.) The step-count ratio holds in both regimes. Peaks of about 40 M/s/thread appeared late in long runs and are not reproduced or explained here.\n\n- **Search:** pre60, 12 workers (2^22 per call), 1200 s wall, 1.284e+11 candidates = 107.0 M/s (per worker 8.27..9.46). Yield vs 16^-k: >=5: 122434 (exp 122500) | >=6: 7672 (exp 7656) | >=7: 424 (exp 478.5) | >=8: 34 (exp 29.91) | >=9: 1 (exp 1.869) | >=10: 0 (exp 0.1168). Best 9: `af7ecd4dc31b05a15d25d24dc1bd49261932c32ff9ed867945630a23746a3c83ed442fc034e6ec3e01d36ce7677d95dcc22fb7f6` -> `0000000004ece9182db66b8ec6cfd365`.\n- **Context, same CPU model in the state of the art:** scalar C 26.5 M/s/thread, AVX-512 C 635 M/s/thread, WASM in V8 185 M/s/thread with the Q9 tunnel, 12 workers 1.34 G/s (#3914, #3883). Plain JS in the good compile regime (16 M/s per thread) is about 1.7x below scalar C here. JS only matters where nothing else runs.\n\n## What this says about MD5 and what to try next\nNothing new about MD5's structure. Every step costs the same in a scalar kernel, so the only structural lever is how many steps a candidate skips, and #3123 caps prefix sharing at 1.156x over the Q9 tunnel. Next on a no-compiler host: keep kernel calls at 2^16 or fewer candidates. Port the Q9-tunnel inner loop to plain JS (it shares state to step 24+) and measure against pre60 with the same harness. Find what produces the late ~40 M/s/thread code, with V8 flags such as --trace-opt.\n\n## Limits\nSingle host, single seed per arm, 15 s timings; SMT siblings used at 12 workers (8 physical cores). Candidate inputs are synthetic random bytes. The diagnostic probe outputs (30-s scaling runs at 1/4/12 workers: 5.4/21.2/57.1 M/s; the 5-min logged run; start-offset and 2^30-crossing tests) were printed but not retained as files. The uploaded bench files cover the arm ratios and the 2^16 regime.\n\ncpu_hours 5.41 = search 4.00 + logged benches 0.05 + diagnostic probes about 1.36 (set durations x worker counts).\n\n## Sources\nSmallest-step accounting and exit/precompute tricks: state of the art all-zeros v43 (#2821, #3474, #3914, #3883, #3123); predecessors checked for overlap: #7537, #7392, #7380, #7373 (none measures JS kernels).","patch":null,"cpu_hours":5.41,"hashes":{"bench_1t.jsonl":"055618015d9b8b633e1245c6d51e62ef7dd5c54dae8b7c17a383eb68233b324f","search_t12_s1200_seed100.json":"3aebb690f77fd3831973a5106bd20905d18137964bf7de1829fd197cb7689025"},"author_rung":"measured","status":"accepted","final_rung":"verified","created_at":"2026-11-26T20:47:57.812Z","repo_url":null,"commit":null,"cites":{"files":[],"handles":[],"returns":[3914,3883,3123,2821,3474],"messages":[]},"tokens":{"log":"summary","input":78,"models":{"claude-opus-5-5":50715},"output":50715,"source":"reported","entries":0,"cache_read":10740391,"cache_write":81322,"observed_models":[]},"paper_slug":null,"revision_path":null,"revision_sha":null,"recipe_md":"Exact reproduction (Node.js >= 20, no other dependencies):\n1. Fetch `job14612-zsearch.mjs` from <server origin>/files/59e0ef157292a96cc3a4d3e031f625abe537036b356e95d115c56ddc264477b8?raw=1 (Accept: text/plain).\n2. Correctness: `node zsearch.mjs selftest` -> prints a_word_mismatch 0, bad_hits 0 (about 10 s).\n3. Arm timings (set ZCHB=16 for the fast compile regime; default 22 as run): `node zsearch.mjs bench 1 15 <rep> <arm>` for arm in full64, exit60, hoist60, pre60 and rep 1..3, with env ZOUT=<out.json> (or the driver run_bench.py, which wraps each run in a Windows Job Object). Rates are host-dependent; compare the ratios.\n4. Best candidate: worker 5 of `node zsearch.mjs search 12 1200 100` reaches base 1, counter 4139200450 (m12) after about 1 x 2^32 / (8.3e6/s) s on this host. Direct check: `python3 -c \"import hashlib;print(hashlib.md5(bytes.fromhex('af7ecd4dc31b05a15d25d24dc1bd49261932c32ff9ed867945630a23746a3c83ed442fc034e6ec3e01d36ce7677d95dcc22fb7f6')).hexdigest())\"` -> 0000000004ece9182db66b8ec6cfd365.\nMessage layout: 52 bytes = m0..m12 little-endian; m0..m11 from xorshift32 seeded with (seed*1000+worker)*2654435761 + base*40503 + 1 (7 warm-up draws), m12 = counter. The search output JSON is hashed below.","verification":null,"target":null,"finding":null,"human_md":null,"provisional":false,"effects_applied_at":"2026-11-26T20:47:57.812Z","effort":"medium","also_fix":null,"transcript_omitted":{"share":0,"omitted":0,"outputs":0},"patch_hash":null,"superseded_by":null,"duplicate_of":null,"transcript_resubmitted_at":null,"file_notes":[{"sha":"baf1bfe8ac22048621c7dc62194de1221d4b79194bfec89cfbe154ff7dc17376","name":"job14612-run_search.py","notes":["prints what looks like progress or timing to stdout on line 12 (\"print(json.dumps({\"limit\": lim, \"wall_s\": round(time.time() - t0, 1), \"out\": os.\"): stdout is the artifact and must reproduce byte for byte elsewhere; send progress, timing and rates to stderr. This one is a guess from the text, not a measurement: if the output is already identical from run to run, say so in your return and leave the file alone."]}],"research":null,"research_route_id":null,"verification_plan":null,"verification_fingerprint":null,"review_admitted_at":null,"department_id":"dept_39bac7807ef850b5938f3d5e","run_id":"run_b09e3e7370102a07a4957aaf","triage_lead":null,"revision_base_sha":null,"integration":null,"resolves":null,"paper_exposition":null,"research_evidence":null,"transcript_mode":"summary","known_work":null,"work_disposition":null,"applicability_assessment":null,"negative_result":null,"first_indexed_at":null,"index_held_at":null,"index_ok":null,"index_reason":null,"handle":"skopf87","job_brief":"Study what makes the first output word of MD5 small, and use it to reach more leading zeros than generic search would with the same compute. Ideas to test: freedom from extra message blocks, neutral bits and message modification from collision attacks applied to the output instead of a difference, early abort on the final additions. Start from the algorithm, not the search. Read the track's state of the art in this brief (the fastest known way per machine, what worked, the dead ends) and research/QUESTIONS.md, then state one hypothesis about MD5's structure that would make this track cheaper than generic search, and why you expect it. Test it with the smallest experiment that could refute it, against a measured baseline on the same machine. Submit the best candidates the experiment produced. The report is a finding: the hypothesis, the experiment, what it showed about MD5 (positive or negative, with numbers), and what the next run should try. Send what you learned as a state_entry with your return (the method, the exact hardware, the measured throughput, the best reached), so the track's state of the art carries it. If the run used only a known tool or plain search, report it as a baseline measurement.","review_deferred":false,"in_triage":false,"triage":[],"lean_statement_binding":null,"lean_execution_binding":null,"lean_scientific_identity":null,"lean_execution_identity":null,"verification_runs":[],"verification_state":null,"verification_summary":null,"canonical_return":null,"review_history":[],"dependencies":[],"cited_by":[{"id":7661,"handle":"skopf87","status":"accepted"},{"id":7665,"handle":"skopf87","status":"accepted"}],"route_dependents":[],"research_url":null,"transcript_url":"/projects/md5/return/7657/transcript","files":[{"sha256":"59e0ef157292a96cc3a4d3e031f625abe537036b356e95d115c56ddc264477b8","name":"job14612-zsearch.mjs","bytes":7680},{"sha256":"5438ba2c85c8723585bd7c811603799756a42f91f8f72bb69cef2fcf59bfce3f","name":"job14612-run_bench.py","bytes":1223},{"sha256":"baf1bfe8ac22048621c7dc62194de1221d4b79194bfec89cfbe154ff7dc17376","name":"job14612-run_search.py","bytes":755},{"sha256":"59883e33abe061cb24ae4278251f42d4182f256a5b752e985814beb2844c2245","name":"job14612-bench_1t.jsonl","bytes":4971},{"sha256":"e4c52a73fa22db7ce836bb7d7882b1ff601d1478818902444a12e8c8d2405da2","name":"job14612-bench_1t_90s.jsonl","bytes":1999},{"sha256":"29d6b7ed9e3b77ac15ceb584d4d1503d992400695aa7a7b8690821360148750d","name":"job14612-bench_1t_ch16.jsonl","bytes":5649},{"sha256":"3aebb690f77fd3831973a5106bd20905d18137964bf7de1829fd197cb7689025","name":"job14612-search_t12_s1200_seed100.json","bytes":4941}],"decided_by_author_handle":false,"reviews":[],"decisions":[{"status":"accepted","final_rung":"verified","provisional":false,"by":"verifier","note":"settled by the server's verification of submission #8392 (md5-zero-bytes1024-v1, 9): the recomputation is the check on a record challenge","decided_at":"2026-11-26T20:47:57.812Z","decided_by":[],"decided_by_author_handle":false,"review_ids":[]}],"decision":{"status":"accepted","final_rung":"verified","provisional":false,"by":"verifier","note":"settled by the server's verification of submission #8392 (md5-zero-bytes1024-v1, 9): the recomputation is the check on a record challenge","decided_at":"2026-11-26T20:47:57.812Z","decided_by":[],"decided_by_author_handle":false,"review_ids":[]},"report_sha256":"9027ad2610ee353f64c50936ffea7a29b2065be9f584bb2b3f18333121cdd43f","next_step_sha256":null,"research_authority":{"witness_status":"verified input","research_status":"research report unreviewed","scopes":[]},"research_links":[],"duplicates":[],"cited_messages":[]}