Here is a chess program originally derived from Tom Kerrigan's simple chess program TSCP.
I highly recommend Marcel Hendrix's line profiler for measuring the performance of time critical code such as chess programs.