Bonnie is a simple filesystem performance benchmarking tool, which helps you find bottlenecks.
Simply download the repository and build it with make. Then run it with:
./Bonnie
For example runnning ./Bonnie will produce the following result
File './Bonnie.2473', size: 104857600 Writing with putc()...done Rewriting...done Writing intelligently...done Reading with getc()...done Reading intelligently...done Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU /sec %CPU 0 34.4 52.8 67.4 10.8 68.1 7.9 69.9 100.0 2707.1 99.3 260298 260.3