How to benchmark a NAS from a Mac (Neither fio nor bonnie++ work) I want to test the performance of a NAS before and after I change its setup. I have found two tools for this, fio and bonnie++.
The problem is that they are both broken on Mac right now (and have been for some time it seems). fio doesn't compile (Due to changes in XCode 8?) and bonnie fails to complete successfully (it fails on machines with more than 1 GB memory and also fails when it tries to clean up the files it created).
How can I test the performance of a NAS on a Mac? I am mostly interested in the relative performance, that is, how much the performance change when I make this change in configuration that I am about to try out, which I assume makes it easier?
(Or does it exist some static compiled fio/bonnie that works on current Mac OS?)
Bonnie++ can be installed this way:
Download Bonnie++ 1.98 from here:
https://www.coker.com.au/bonnie++/bonnie++-1.98.tgz
Extract the source code:
tar -xvzf bonnie++-1.98.tgz

Download the patch found here:
https://raw.githubusercontent.com/Homebrew/formula-patches/913b5a25087d2c64d3b6459635d5d64012b83042/bonnie%2B%2B/remove-large-file-support-macros.diff
Apply it to the source code using the patch utility:
cd bonnie++-1.98
patch &lt; ../remove-large-file-support-macros.diff

Now configure and compile like usual:
./configure
make
make install