From 41a2e5c65dc92a0c47212efcb7f5dfef8443f9b2 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 13 Oct 2026 05:08:06 +0100 Subject: Research 140, 027's stage 1 measured: SHA-256 written in aup (its examples/sha256.aup) right for FIPS 180-2's examples and 138 more messages on every path, in make check against hashlib; 52 lines against Python's 28 (the bar missed: no formatting, no bytes joined or sliced, no lists as values, moved into stage 2), 176 times C's time and 0.43 of plain Python's (1,591 ns a byte; a block's 19,129 instructions, 39% of them the inlined fn's literals not folded); 044's check, time.c against the same algorithm in C (digests compared first) and the Python reference --- research/experiments/044-specs/2026-10-13-sha256.jsonl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 research/experiments/044-specs/2026-10-13-sha256.jsonl (limited to 'research/experiments/044-specs/2026-10-13-sha256.jsonl') diff --git a/research/experiments/044-specs/2026-10-13-sha256.jsonl b/research/experiments/044-specs/2026-10-13-sha256.jsonl new file mode 100644 index 0000000..b8d3c7c --- /dev/null +++ b/research/experiments/044-specs/2026-10-13-sha256.jsonl @@ -0,0 +1,6 @@ +{"size":65536,"jit":"0","batch":"0","c_ns_per_byte":9.035,"pure_ns_per_byte":1592.087,"ratio":176.2,"instructions":19606989,"instructions_per_block":19129} +{"size":65536,"jit":"0","batch":"","c_ns_per_byte":9.049,"pure_ns_per_byte":1589.872,"ratio":175.7,"instructions":19606989,"instructions_per_block":19129} +{"size":65536,"jit":"all","batch":"","c_ns_per_byte":9.031,"pure_ns_per_byte":1592.166,"ratio":176.3,"instructions":19606989,"instructions_per_block":19129} +{"size":65536,"jit":"","batch":"","c_ns_per_byte":9.051,"pure_ns_per_byte":1591.118,"ratio":175.8,"instructions":19606989,"instructions_per_block":19129} +{"size":65536,"python_ns_per_byte":3708.3} +{"messages":142,"right":{"batches":142,"rounds":142,"all":142,"default":142},"aup_lines":52,"aup_brace_lines":7,"python_lines":28} -- cgit v1.2.3