#!/usr/bin/env bash # build_pool_tls.sh - Pool TLS Phase 1.5a 専用ビルドスクリプト # # Pool TLS Phase 1.5a (8KB-52KB allocations) + Phase 7 (Tiny) 最適化を全て有効化 # フラグ忘れ防止のため、このスクリプトから build.sh を呼び出す set -euo pipefail # デフォルトターゲット TARGET="${1:-bench_mid_large_mt_hakmem}" echo "=========================================" echo " 🎯 Pool TLS Phase 1.5a Build" echo " Target: ${TARGET}" echo "=========================================" echo "" echo "📦 Enabled features:" echo " ✓ Pool TLS Phase 1.5a (8KB-52KB)" echo " ✓ Phase 7 Tiny optimizations" echo " ✓ Header-based class index" echo " ✓ Aggressive inlining" echo " ✓ Pre-warmed TLS cache" echo "" # build.sh は既に全てのフラグを設定しているので、そのまま呼ぶ ./build.sh "${TARGET}" echo "" echo "=========================================" echo " ✅ Pool TLS Phase 1.5a build complete!" echo "" echo "📊 Recommended benchmarks:" echo " # Mid-Large (8-32KB) - Pool TLS のメイン領域" echo " ./bench_mid_large_mt_hakmem 1 100000 256 42" echo "" echo " # Tiny (128B-1KB) - Phase 7 最適化を確認" echo " ./bench_random_mixed_hakmem 100000 512 42" echo "" echo " # Larson (multi-threaded stress test)" echo " ./larson_hakmem 10 8 128 1024 1 12345 4" echo "" echo "🔍 Build verification:" echo " ./verify_build.sh ${TARGET}" echo "" echo "📈 Quick performance check:" echo " ./quick_test.sh # (if exists)" echo "========================================="