Just some random Ubuntu 24.04 vs FreeBSD 14 Benchmarking

May 6, 2024 | Reading time: 4 minutes

This isn’t a competition. This is just a curiosity experiment, and is likely not accurate.

These two NUCS are almost the same - nuc1 had a bad 8GB memory module so I replaced it with a 16g, so it now has 24G vs 16G of nuc2. Identical models, NVMEs, etc otherwise. nuc1 is running Ubuntu 24.04 Server and nuc2 is running FreeBSD 14 (not the beta 14.1 yet, but that would be an interesting test too).

Both are using sysbench 1.0.20

It’s interesting to see the differences in the CPU. The memory disparity could be a faster stick of RAM in nuc1 (read above).

FreeBSD Benchmarks

NUC2 CPU (FreeBSD, sysbench –test=cpu run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.1699801871)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Prime numbers limit: 10000

Initializing worker threads…

Threads started!

CPU speed: events per second: 6895556.70

General statistics: total time: 10.0001s total number of events: 68964353

Latency (ms): min: 0.00 avg: 0.00 max: 0.01 95th percentile: 0.00 sum: 2180.22

Threads fairness: events (avg/stddev): 68964353.0000/0.00 execution time (avg/stddev): 2.1802/0.00

NUC2 Memory (FreeBSD, sysbench –test=memory run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.1699801871)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Running memory speed test with the following options: block size: 1KiB total size: 102400MiB operation: write scope: global

Initializing worker threads…

Threads started!

Total operations: 47071732 (4706580.18 per second)

45968.49 MiB transferred (4596.27 MiB/sec)

General statistics: total time: 10.0001s total number of events: 47071732

Latency (ms): min: 0.00 avg: 0.00 max: 0.02 95th percentile: 0.00 sum: 4639.12

Threads fairness: events (avg/stddev): 47071732.0000/0.00 execution time (avg/stddev): 4.6391/0.00

NUC2 IO (FreeBSD, sysbench –test=fileio –file-test-mode=seqwr run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.1699801871)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Extra file open flags: (none) 128 files, 16MiB each 2GiB total file size Block size 16KiB Periodic FSYNC enabled, calling fsync() each 100 requests. Calling fsync() at the end of test, Enabled. Using synchronous I/O mode Doing sequential write (creation) test Initializing worker threads…

Threads started!

File operations: reads/s: 0.00 writes/s: 20273.90 fsyncs/s: 25957.59

Throughput: read, MiB/s: 0.00 written, MiB/s: 316.78

General statistics: total time: 10.0056s total number of events: 462554

Latency (ms): min: 0.00 avg: 0.02 max: 38.32 95th percentile: 0.02 sum: 9819.38

Threads fairness: events (avg/stddev): 462554.0000/0.00 execution time (avg/stddev): 9.8194/0.00

Ubuntu 24.04 Benchmarks

NUC1 CPU (Ubuntu 24.04, sysbench –test=cpu run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Prime numbers limit: 10000

Initializing worker threads…

Threads started!

CPU speed: events per second: 1335.88

General statistics: total time: 10.0004s total number of events: 13361

Latency (ms): min: 0.73 avg: 0.75 max: 1.07 95th percentile: 0.77 sum: 9998.36

Threads fairness: events (avg/stddev): 13361.0000/0.00 execution time (avg/stddev): 9.9984/0.00

NUC1 Memory (Ubuntu 24.04, sysbench –test=memory run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Running memory speed test with the following options: block size: 1KiB total size: 102400MiB operation: write scope: global

Initializing worker threads…

Threads started!

Total operations: 71207014 (7119737.43 per second)

69538.10 MiB transferred (6952.87 MiB/sec)

General statistics: total time: 10.0000s total number of events: 71207014

Latency (ms): min: 0.00 avg: 0.00 max: 0.03 95th percentile: 0.00 sum: 4622.50

Threads fairness: events (avg/stddev): 71207014.0000/0.00 execution time (avg/stddev): 4.6225/0.00

NUC1 IO (Ubuntu 24.04, sysbench –test=fileio –file-test-mode=seqwr run)

WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options: Number of threads: 1 Initializing random number generator from current time

Extra file open flags: (none) 128 files, 16MiB each 2GiB total file size Block size 16KiB Periodic FSYNC enabled, calling fsync() each 100 requests. Calling fsync() at the end of test, Enabled. Using synchronous I/O mode Doing sequential write (creation) test Initializing worker threads…

Threads started!

File operations: reads/s: 0.00 writes/s: 11340.04 fsyncs/s: 14526.34

Throughput: read, MiB/s: 0.00 written, MiB/s: 177.19

General statistics: total time: 10.0075s total number of events: 258763

Latency (ms): min: 0.01 avg: 0.04 max: 6.85 95th percentile: 0.05 sum: 9933.15

Threads fairness: events (avg/stddev): 258763.0000/0.00 execution time (avg/stddev): 9.9331/0.00

Comments

comments powered by Disqus