How to benchmark a CPU in Linux?

How to benchmark filesystem in Linux?