FreeBSD 14.1 Impressive Video Encode Performance

jardows

2[H]4U
2FA
Joined
Jun 10, 2015
Messages
2,480
Michael Larabel at Phoronix just posted some benchmark results comparing FreeBSD 14.1, NetBSD 10, DragonFly BSD 6.4, Ubuntu 24.04, and CentOS Stream 9. I am quite impressed with the performance of FreeBSD here, especially as it pertains to video encoding, with FreeBSD taking the top spot in all of the benchmarks. I'm going to be pretty busy the next few weeks, but I'll have to check out some real-world numbers using OpenShot and Handbrake on my Ryzen 5600 for some more data.
 
I'm a big fan of FreeBSD, but I'm suspicious about some of these benchmarks. It's not clear if this is the general approach for all the benchmarks...

The packaged PHP on each operating system varies but in any event here is a look at the out-of-the-box performance.

Comparing different OS, different software version, different compiler isn't really helpful, especially when the details aren't listed. It's not hard to build with gcc and clang on Linux and FreeBSD and then tell us if the x265 performance difference is from the compiler. And if it's really from the OS, there's got to be a story there, because there's not much reason for userspace cpu heavy programs to have a perf difference.

Some of the other stuff that's syscall heavy, sure; the various kernels do i/o differently and there's likely to be some use cases that work better with one or the other.
 
Phoronix usually is quite detailled:
result.svgz


you can see how the build option, version, etc... gcc or clang version and so on (they claim to have used the default that come with the different version, which I imagine is where significant difference can come from, feel like you are pointing out that someone should remove the only reason those distros would be any different for the average users at something like this)
 
Last edited:
I'm a big fan of FreeBSD, but I'm suspicious about some of these benchmarks. It's not clear if this is the general approach for all the benchmarks...



Comparing different OS, different software version, different compiler isn't really helpful, especially when the details aren't listed. It's not hard to build with gcc and clang on Linux and FreeBSD and then tell us if the x265 performance difference is from the compiler. And if it's really from the OS, there's got to be a story there, because there's not much reason for userspace cpu heavy programs to have a perf difference.

Some of the other stuff that's syscall heavy, sure; the various kernels do i/o differently and there's likely to be some use cases that work better with one or the other.
Larabel is at least consistent on benchmarking out of the box performance, which is the only realistic comparison you can make when benchmarking different systems like this. In this case, if the video encoding difference is up to the user of clang vs gcc, I suppose you could rebuild your Ubuntu userland and Linux kernel using clang ;)

Some day I want to work up some FreeBSD tuning options to see if I can improve certain workloads over the system defaults. Might be some good low hanging fruit there.

Anyway, my main point is that, if out of the box FreeBSD is excelling in this task, maybe more people will give a look at it, and maybe build up some more development and tuning documentation.
 
Back
Top