Circus Maximus gave Aidan O'Brien a record eighth win in the St. James's Palace Stakes (G1) as he first outbattled Too Darn Hot before holding the late lunge of King of Comedy.