Skip to content

Instantly share code, notes, and snippets.

@andrewrabert
Last active March 17, 2026 03:36
Show Gist options
  • Select an option

  • Save andrewrabert/b2ae7d45d269195449215795a8613c4e to your computer and use it in GitHub Desktop.

Select an option

Save andrewrabert/b2ae7d45d269195449215795a8613c4e to your computer and use it in GitHub Desktop.
compiler flag benchmarks: flac-1.5.0-1 (2026-03-16)

benchmarking flac and CFLAGS

CPU: AMD 5950X

source data

01 Lighthouse.flac
02 To Whom It May Concern.flac
03 Green Light.flac
04 Fire.flac
05 In Darkness.flac
06 Light of Love.flac
07 Against the Waves.flac
08 Lies, Lies, Lies.flac
09 A Thousand Miles.flac
10 Midnight Queen.flac
11 We are the Light.flac
12 Leave A Light On.flac
13 Light of Love (Deluxe Version).flac
14 The Sea.flac
15 Where The Water Meets The Sky.flac
16 Lighthouse (Single Edit).flac
17 Against the Waves (Single Edit).flac
cover.jpg

flac-1.5.0-1

Default (package from extra)

$ hyperfine -n 5 'reencode-lossless tmp'
Benchmark 1: 5
  Time (mean ± σ):      1.997 s ±  0.204 s    [User: 30.733 s, System: 1.176 s]
  Range (min … max):    1.819 s …  2.445 s    10 runs

-march=x86-64-v3

$ hyperfine -n 5 'reencode-lossless tmp'
Benchmark 1: 5
  Time (mean ± σ):      1.751 s ±  0.014 s    [User: 28.723 s, System: 1.181 s]
  Range (min … max):    1.735 s …  1.777 s    10 runs

-march=native -O3

 $ hyperfine -n 5 'reencode-lossless tmp'
Benchmark 1: 5
  Time (mean ± σ):      1.458 s ±  0.046 s    [User: 24.323 s, System: 1.189 s]
  Range (min … max):    1.417 s …  1.538 s    10 runs

-march=native -O3, lto

$ hyperfine -n 5 'reencode-lossless tmp'
Benchmark 1: 5
  Time (mean ± σ):      1.448 s ±  0.035 s    [User: 24.433 s, System: 1.230 s]
  Range (min … max):    1.422 s …  1.523 s    10 runs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment