Author Topic: flac 1.5.0 now supports multithreaded encoding  (Read 9366 times)

tle

  • Hero Member
  • *****
  • Posts: 533
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
flac 1.5.0 now supports multithreaded encoding
« on: August 11, 2025, 12:03:45 am »
Code: [Select]
tle@fedora ~/W/wavs (main)> rm *.flac && time flac -V -8 -j 32  collectathon.wav

flac 1.5.0
Copyright (C) 2000-2009  Josh Coalson, 2011-2025  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

collectathon.wav: Verify OK, wrote 8261224 bytes, ratio=0.551

________________________________________________________
Executed in  186.32 millis    fish           external
   usr time    1.43 secs    359.00 micros    1.42 secs
   sys time    0.02 secs      0.00 micros    0.02 secs

tle@fedora ~/W/wavs (main)> rm *.flac && time flac -V -8 -j 1  collectathon.wav

flac 1.5.0
Copyright (C) 2000-2009  Josh Coalson, 2011-2025  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

collectathon.wav: Verify OK, wrote 8261224 bytes, ratio=0.551

________________________________________________________
Executed in  963.39 millis    fish           external
   usr time  962.46 millis  419.00 micros  962.04 millis
   sys time    0.00 millis    0.00 micros    0.00 millis

So with 32 threads, it's 5x faster than 1 thread.
Faithful Linux enthusiast

My Raptor Blackbird