General benchmarking tools
phoronix is a testing and benchmarking platform.
Getting starting guide is found here:
I've not had much luck installing it on Mac OS X, but it is claimed that it is possible.
I've found a tool called iozone, which is distributed as C source code. Compiles on many platforms, including Linux, Mac OS X and Windows. It is free.
Example of downloading and compiling on mac:
wget http://www.iozone.org/src/current/iozone3_408.tar tar xzvf iozone3_408.tar cd iozone3_408/src/current make macosx # source code is now compiled, run with ./iozone
Run test (automatic mode):
The manual has build instructions and all flags are explained. It is not mentioned alot on the web, but I like it. It has a good interface, and is easy to understand.
CPU and memory performance
Cross platform benchmark tool for CPU and memory performance. It has commandline tool. Costs money (up to $79 for pro version). I have personally bought this tool.