The profiler

Find out what function is the bottleneck in your program.