Skip to content

Instantly share code, notes, and snippets.

@nathanchance
Last active March 25, 2023 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanchance/8d1abed70077ac92cb198ef32389072e to your computer and use it in GitHub Desktop.
Save nathanchance/8d1abed70077ac92cb198ef32389072e to your computer and use it in GitHub Desktop.
Benchmarking distribution versions of clang against profile guided optimized clang

System information

nathan@dev-fedora.c3-large-arm64 
-------------------------------- 
OS: Fedora Linux 38 (Container Image Prerelease) aarch64 
Host: R272-P30-JG 100 
Kernel: 6.0.7-301.fc37.aarch64 
Uptime: 6 days, 4 hours, 8 mins 
Packages: 1486 (rpm) 
Shell: fish 3.6.0 
Resolution: 1024x768 
Terminal: tmux 
CPU: (80) @ 3.000GHz 
GPU: 0004:02:00.0 ASPEED Technology, Inc. ASPEED Graphics Family 
Memory: 5096MiB / 256769MiB 

Results

Building ARCH=arm64 allmodconfig @ efbcbb12ee99 ("media: m5mols: fix off-by-one loop termination error")...

Benchmark 1: clang version 15.0.7 (Fedora 15.0.7-2.fc38)
  Time (mean ± σ):     577.486 s ±  0.791 s    [User: 38536.174 s, System: 4194.447 s]
  Range (min … max):   576.393 s … 578.254 s    5 runs
 
Benchmark 2: ClangBuiltLinux clang version 15.0.7
  Time (mean ± σ):     363.450 s ±  0.724 s    [User: 22425.862 s, System: 3453.623 s]
  Range (min … max):   362.614 s … 364.492 s    5 runs
 
Summary
  'ClangBuiltLinux clang version 15.0.7' ran
    1.59 ± 0.00 times faster than 'clang version 15.0.7 (Fedora 15.0.7-2.fc38)'

System information

nathan@dev-arch.m3-large-x86 
---------------------------- 
OS: Arch Linux x86_64 
Host: PowerEdge R6515 
Kernel: 6.2.5-arch1-1 
Uptime: 6 days, 2 hours, 52 mins 
Packages: 366 (pacman) 
Shell: fish 3.6.0 
Resolution: 1024x768 
Terminal: tmux 
CPU: AMD EPYC 7502P (48) @ 2.629GHz 
GPU: c2:00.0 Matrox Electronics Systems Ltd. Integrated Matrox G200eW3 Graphics Controller 
Memory: 1794MiB / 257337MiB 

Results

Building ARCH=x86_64 allmodconfig @ efbcbb12ee99 ("media: m5mols: fix off-by-one loop termination error")...

Benchmark 1: clang version 15.0.7 (clang 15.0.7-2)
  Time (mean ± σ):     972.361 s ±  1.210 s    [User: 40201.222 s, System: 3639.356 s]
  Range (min … max):   970.855 s … 973.581 s    5 runs
                  
Benchmark 2: ClangBuiltLinux clang version 15.0.7
  Time (mean ± σ):     658.028 s ±  0.794 s    [User: 26037.578 s, System: 2953.693 s]
  Range (min … max):   656.683 s … 658.643 s    5 runs
 
Summary
  'ClangBuiltLinux clang version 15.0.7' ran
    1.48 ± 0.00 times faster than 'clang version 15.0.7 (clang 15.0.7-2)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment