Performance benchmark software?

Does anyone know of any good performance benchmarking software that is available? I want to capture the CPU and the time it takes for a custom piece of software to perform certain actions. Any ideas?