Step 2 & 3 Complete: - A/B test (Mixed 10-run): STATIC_ROUTE=0 (38.91M) → =1 (39.77M) = +2.20% avg - Median gain: +1.98% - Result: ✅ GO (exceeds +1.0% threshold) - Decision: ✅ ADOPT into MIXED_TINYV3_C7_SAFE preset - bench_profile.h line 77: HAKMEM_TINY_STATIC_ROUTE=1 default - Learner auto-disables static route when HAKMEM_SMALL_LEARNER_V7_ENABLED=1 Implementation Summary: - core/box/tiny_static_route_box.{h,c}: Research box (Step 1A) - core/front/malloc_tiny_fast.h: Route lookup integration (Step 1B, lines 249-256) - core/bench_profile.h: Bench sync + preset adoption Cumulative Phase 2-3 Gains: - B3 (Routing shape): +2.89% - B4 (Wrapper split): +1.47% - C3 (Static routing): +2.20% - Total: ~6.8% (35.2M → ~39.8M ops/s) Next: Phase 3 C1 (TLS Prefetch, expected +2-4%) 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
707 B
707 B
Phase 2 B1: HAKMEM_TINY_HEADER_MODE=LIGHT A/B Test Report
目的
Tiny の header 書き込み回数を減らし、store traffic を落とす(コード膨張なしで勝つ狙い)。
条件
- Baseline:
HAKMEM_TINY_HEADER_MODE=FULL - Opt:
HAKMEM_TINY_HEADER_MODE=LIGHT
結果(Mixed)
- Mixed(10-run avg): 48.89M → 47.65M ops/s(-2.54%)
判定
- ❌ NO-GO(Mixed の回帰が明確)
- Decision: freeze(research box として残し、本線 default は FULL のまま)
所見
LIGHT の「条件分岐+追加ロード」のコストが、store 削減メリットを上回った。
(Mixed は分岐/I-cache に敏感で、A3 と同じ学び)