Skip to content

Latest commit

 

History

History
105 lines (99 loc) · 13.8 KB

Benchmarks.md

File metadata and controls

105 lines (99 loc) · 13.8 KB

Runtime ASTC Encoder — Performance Benchmarks & Regression Baseline

  • Updated: 2026-12-01 08:36 UTC | Commit: 44492de | GitHub Actions Run
  • Baseline Comparison: Deltas (Δ vs Baseline) compare each benchmark's median latency against the previous saved snapshot in docs/benchmarks/baseline.json (🚀 ≥ 5% faster, ⚠️ ≥ 15% slower).

1. Unity Standalone Player (Real Hardware GPU + CPU)

  • GPU: Apple Paravirtual device (Metal)
  • CPU: Apple M1 (Virtual) (3 cores)
  • Unity: 2021.3.6f1 | Platform: OSXPlayer
  • GPU Direct CopyTexture: 4x4=True, 6x6=True
Benchmark Backend Res Block Quality Min (ms) Median (ms) P95 (ms) MP/s GC (KB) RGB PSNR Normal Err Δ vs Baseline
GPU_RGBA8_1024_ASTC_4x4_Fast GPU 1024x1024 ASTC_4x4 Fast 6.07 6.38 8.62 164.43 0.0 48.92 dB — 🚀 -16.7%
CPU_RGBA8_1024_ASTC_4x4_Fast CPU 1024x1024 ASTC_4x4 Fast 375.72 430.25 594.45 2.44 8.0 48.95 dB — ⚠️ +69.8%
GPU_RGBA8_1024_ASTC_4x4_Medium GPU 1024x1024 ASTC_4x4 Medium 20.45 20.71 21.16 50.64 0.0 48.73 dB — 🚀 -49.5%
CPU_RGBA8_1024_ASTC_4x4_Medium CPU 1024x1024 ASTC_4x4 Medium 622.89 920.31 1220.97 1.14 4.0 50.24 dB — ⚠️ +77.1%
GPU_RGBA8_1024_ASTC_6x6_Fast GPU 1024x1024 ASTC_6x6 Fast 10.43 10.74 21.53 97.67 0.0 34.65 dB — 🚀 -47.2%
CPU_RGBA8_1024_ASTC_6x6_Fast CPU 1024x1024 ASTC_6x6 Fast 371.55 399.55 433.08 2.62 4.0 41.75 dB — +7.5%
GPU_RGBA8_1024_ASTC_6x6_Medium GPU 1024x1024 ASTC_6x6 Medium 28.93 33.44 42.79 31.36 0.0 39.44 dB — 🚀 -41.8%
CPU_RGBA8_1024_ASTC_6x6_Medium CPU 1024x1024 ASTC_6x6 Medium 865.77 987.35 1313.96 1.06 4.0 43.23 dB — +12.7%
GPU_RGBA8_1024_ASTC_8x8_Fast GPU 1024x1024 ASTC_8x8 Fast 10.34 12.37 22.45 84.74 0.0 43.43 dB — ⚠️ +45.3%
CPU_RGBA8_1024_ASTC_8x8_Fast CPU 1024x1024 ASTC_8x8 Fast 836.11 882.08 892.36 1.19 3.0 45.99 dB — +5.5%
GPU_RGBA8_1024_ASTC_8x8_Medium GPU 1024x1024 ASTC_8x8 Medium 31.20 35.11 42.38 29.87 0.0 44.29 dB — 🚀 -5.2%
CPU_RGBA8_1024_ASTC_8x8_Medium CPU 1024x1024 ASTC_8x8 Medium 1422.01 1705.45 1919.65 0.61 3.0 47.93 dB — 🚀 -7.7%
GPU_RGBA8_1024_ASTC_12x12_Fast GPU 1024x1024 ASTC_12x12 Fast 10.44 10.86 21.96 96.54 0.0 24.67 dB — +0.1%
CPU_RGBA8_1024_ASTC_12x12_Fast CPU 1024x1024 ASTC_12x12 Fast 655.91 677.65 721.47 1.55 6.0 27.78 dB — -4.7%
GPU_RGBA8_1024_ASTC_12x12_Medium GPU 1024x1024 ASTC_12x12 Medium 20.41 20.88 24.81 50.21 0.0 25.46 dB — 🚀 -32.0%
CPU_RGBA8_1024_ASTC_12x12_Medium CPU 1024x1024 ASTC_12x12 Medium 928.08 1003.46 1128.96 1.04 4.0 30.08 dB — 🚀 -20.0%
GPU_RGBA8_512_ASTC_4x4_Fast GPU 512x512 ASTC_4x4 Fast 10.96 11.70 14.17 22.40 0.0 44.54 dB — ⚠️ +111.0%
CPU_RGBA8_512_ASTC_4x4_Fast CPU 512x512 ASTC_4x4 Fast 122.85 131.22 150.15 2.00 4.0 44.51 dB — 🚀 -11.7%
GPU_RGBA8_512_ASTC_4x4_Medium GPU 512x512 ASTC_4x4 Medium 10.49 10.52 10.68 24.91 0.0 44.01 dB — 🚀 -48.9%
CPU_RGBA8_512_ASTC_4x4_Medium CPU 512x512 ASTC_4x4 Medium 260.15 282.41 312.20 0.93 4.0 47.81 dB — +1.8%
GPU_RGBA8_512_ASTC_4x4_Thorough GPU 512x512 ASTC_4x4 Thorough 20.76 21.22 22.44 12.35 0.0 44.03 dB — ⚠️ +42.0%
CPU_RGBA8_512_ASTC_4x4_Thorough CPU 512x512 ASTC_4x4 Thorough 536.03 554.55 588.59 0.47 6.7 51.62 dB — 🚀 -6.6%
GPU_RGBA8_512_ASTC_6x6_Fast GPU 512x512 ASTC_6x6 Fast 21.07 21.89 24.85 11.98 0.0 31.78 dB — ⚠️ +402.6%
CPU_RGBA8_512_ASTC_6x6_Fast CPU 512x512 ASTC_6x6 Fast 83.17 117.27 139.19 2.24 4.0 37.20 dB — 🚀 -20.5%
GPU_RGBA8_512_ASTC_6x6_Medium GPU 512x512 ASTC_6x6 Medium 10.23 10.28 20.61 25.49 0.0 33.65 dB — 🚀 -38.0%
CPU_RGBA8_512_ASTC_6x6_Medium CPU 512x512 ASTC_6x6 Medium 369.45 419.43 470.16 0.62 4.8 38.69 dB — ⚠️ +30.6%
GPU_RGBA8_512_ASTC_6x6_Thorough GPU 512x512 ASTC_6x6 Thorough 20.62 21.64 22.50 12.11 0.0 35.06 dB — +7.7%
CPU_RGBA8_512_ASTC_6x6_Thorough CPU 512x512 ASTC_6x6 Thorough 563.54 642.29 699.94 0.41 4.0 39.10 dB — 🚀 -8.7%
GPU_RGBA8_512_ASTC_8x8_Fast GPU 512x512 ASTC_8x8 Fast 10.43 10.51 10.85 24.95 0.0 37.82 dB — ⚠️ +198.8%
CPU_RGBA8_512_ASTC_8x8_Fast CPU 512x512 ASTC_8x8 Fast 212.50 226.45 251.48 1.16 5.6 41.99 dB — -1.2%
GPU_RGBA8_512_ASTC_8x8_Medium GPU 512x512 ASTC_8x8 Medium 20.51 21.07 21.17 12.44 0.0 39.51 dB — ⚠️ +78.0%
CPU_RGBA8_512_ASTC_8x8_Medium CPU 512x512 ASTC_8x8 Medium 495.23 503.04 547.27 0.52 4.0 43.14 dB — ⚠️ +34.5%
GPU_RGBA8_512_ASTC_8x8_Thorough GPU 512x512 ASTC_8x8 Thorough 20.45 20.99 21.23 12.49 0.0 39.65 dB — ⚠️ +69.1%
CPU_RGBA8_512_ASTC_8x8_Thorough CPU 512x512 ASTC_8x8 Thorough 823.47 1170.89 1246.74 0.22 4.0 47.48 dB — ⚠️ +73.2%
GPU_RGBA8_512_ASTC_12x12_Fast GPU 512x512 ASTC_12x12 Fast 10.26 10.58 20.34 24.78 0.0 24.04 dB — ⚠️ +355.8%
CPU_RGBA8_512_ASTC_12x12_Fast CPU 512x512 ASTC_12x12 Fast 205.29 219.90 292.25 1.19 4.0 26.31 dB — ⚠️ +39.0%
GPU_RGBA8_512_ASTC_12x12_Medium GPU 512x512 ASTC_12x12 Medium 10.32 10.66 21.18 24.59 0.0 24.67 dB — 🚀 -47.6%
CPU_RGBA8_512_ASTC_12x12_Medium CPU 512x512 ASTC_12x12 Medium 354.56 390.23 415.87 0.67 4.0 27.73 dB — ⚠️ +26.6%
GPU_RGBA8_512_ASTC_12x12_Thorough GPU 512x512 ASTC_12x12 Thorough 10.24 10.36 11.14 25.30 0.0 24.69 dB — +0.3%
CPU_RGBA8_512_ASTC_12x12_Thorough CPU 512x512 ASTC_12x12 Thorough 737.93 807.69 819.81 0.32 4.0 27.42 dB — ⚠️ +44.6%
GPU_ZeroReadback_1024_6x6_Fast GPU 1024x1024 ASTC_6x6 Fast 1.47 2.98 4.70 352.18 0.0 — — +10.4%
GPU_ZeroReadback_MipGen_1024_6x6_Fast GPU 1024x1024+Mips ASTC_6x6 Fast 3.42 3.84 5.33 363.63 0.0 — — ⚠️ +412.0%
GPU_Normal_512_6x6_Medium GPU 512x512 ASTC_6x6 Medium 10.30 11.46 12.29 22.88 0.0 — 0.27° 🚀 -40.5%
CPU_Normal_512_6x6_Medium CPU 512x512 ASTC_6x6 Medium 428.71 568.57 589.82 0.46 4.0 — 0.15° ⚠️ +78.1%
GPU_sRGB_512_6x6_Fast GPU 512x512 ASTC_6x6 Fast 10.47 10.66 10.97 24.58 0.0 — — ⚠️ +62.2%
GPU_HDR16F_512_6x6_Fast GPU 512x512 ASTC_6x6 Fast 10.91 11.11 22.17 23.60 0.0 — — ⚠️ +100897.3%
CPU_CompressRawPixels_512_6x6_Fast CPU 512x512 ASTC_6x6 Fast 263.25 271.74 304.64 0.96 4.0 — — ⚠️ +49.9%
CPU_CompressRawPixelsInto_512_6x6_Fast CPU 512x512 ASTC_6x6 Fast 254.79 260.94 411.23 1.00 5.6 — — ⚠️ +33.1%
CPU_Decompress_512_6x6_3T CPU 512x512 ASTC_6x6 N/A 2.53 4.24 15.39 61.79 415.2 — — ⚠️ +174.1%
DiskCache_TryLoad_512_6x6_FullMips Disk+GPU 512x512+Mips ASTC_6x6 N/A 0.55 0.87 2.28 404.03 156.8 — — ⚠️ +31.0%

2. Cross-Platform Native CPU (astc-encoder v5.7.1)

Platform / CPU Benchmark ISA Threads Min (ms) Median (ms) P95 (ms) MP/s Δ vs Baseline
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_4x4_Fast_4T AVX2 4 78.36 82.16 98.45 3.19 ⚠️ +39.6%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_4x4_Medium_4T AVX2 4 235.64 236.00 249.70 1.11 ⚠️ +23.4%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_6x6_Fast_4T AVX2 4 52.20 52.70 62.82 4.97 ⚠️ +31.6%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_6x6_Medium_4T AVX2 4 224.34 233.61 240.19 1.12 ⚠️ +34.9%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_8x8_Fast_4T AVX2 4 40.61 40.98 53.57 6.40 ⚠️ +30.3%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_8x8_Medium_4T AVX2 4 112.72 112.76 126.54 2.33 ⚠️ +28.8%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_12x12_Fast_4T AVX2 4 89.89 90.88 97.61 2.88 ⚠️ +29.4%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_512_ASTC_12x12_Medium_4T AVX2 4 424.56 508.74 527.41 0.52 ⚠️ +64.9%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_AVX2_Decompress_512_ASTC_6x6_4T AVX2 4 2.34 3.16 6.01 82.84 ⚠️ +147.2%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_4x4_Fast_4T SSE4.1 4 99.16 142.91 176.12 1.83 ⚠️ +119.1%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_4x4_Medium_4T SSE4.1 4 310.36 359.63 396.19 0.73 ⚠️ +79.5%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_6x6_Fast_4T SSE4.1 4 67.68 71.97 89.50 3.64 ⚠️ +63.9%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_6x6_Medium_4T SSE4.1 4 222.75 241.71 306.93 1.08 ⚠️ +33.9%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_8x8_Fast_4T SSE4.1 4 41.27 41.60 43.47 6.30 ⚠️ +22.2%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_8x8_Medium_4T SSE4.1 4 108.11 108.95 121.08 2.41 ⚠️ +16.6%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_12x12_Fast_4T SSE4.1 4 81.95 84.40 85.91 3.11 ⚠️ +21.2%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_12x12_Medium_4T SSE4.1 4 325.16 335.28 338.67 0.78 +12.9%
Windows AMD64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_Decompress_512_ASTC_6x6_4T SSE4.1 4 2.46 2.51 2.62 104.55 ⚠️ +33.9%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_4x4_Fast_3T ARM64_NEON 3 71.95 77.48 85.77 3.38 +5.1%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_4x4_Medium_3T ARM64_NEON 3 226.93 248.59 372.45 1.05 ⚠️ +33.4%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_6x6_Fast_3T ARM64_NEON 3 57.83 67.29 79.33 3.90 ⚠️ +94.0%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_6x6_Medium_3T ARM64_NEON 3 194.88 211.06 230.28 1.24 ⚠️ +36.2%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_8x8_Fast_3T ARM64_NEON 3 30.31 34.27 36.59 7.65 ⚠️ +22.3%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_8x8_Medium_3T ARM64_NEON 3 83.56 92.62 102.94 2.83 ⚠️ +29.0%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_12x12_Fast_3T ARM64_NEON 3 71.17 75.96 87.00 3.45 ⚠️ +37.5%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_512_ASTC_12x12_Medium_3T ARM64_NEON 3 300.57 311.98 353.67 0.84 ⚠️ +34.4%
Darwin arm64 (Apple M1 (Virtual)) Native_ARM64_NEON_Decompress_512_ASTC_6x6_3T ARM64_NEON 3 2.20 2.99 3.81 87.69 ⚠️ +98.1%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_4x4_Fast_4T SSE4.1 4 73.46 73.50 73.59 3.57 +0.2%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_4x4_Medium_4T SSE4.1 4 220.77 221.22 221.72 1.19 +0.2%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_6x6_Fast_4T SSE4.1 4 50.37 50.51 51.51 5.19 +0.1%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_6x6_Medium_4T SSE4.1 4 197.50 197.62 198.48 1.33 +0.3%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_8x8_Fast_4T SSE4.1 4 38.09 38.12 38.29 6.88 +0.7%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_8x8_Medium_4T SSE4.1 4 98.81 99.00 100.81 2.65 +0.3%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_12x12_Fast_4T SSE4.1 4 75.58 75.88 76.01 3.46 +1.0%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_512_ASTC_12x12_Medium_4T SSE4.1 4 299.59 300.47 303.46 0.87 +0.2%
Linux x86_64 (AMD EPYC 7763 64-Core Processor) Native_SSE4.1_Decompress_512_ASTC_6x6_4T SSE4.1 4 2.16 2.17 2.23 120.64 -0.2%