“Sleep – the opera was invented for no other purpose.”
The opera being performed at the time the remark was made was Meyerbeer’s Robert le Diable.

Alexandre Dumas – The Count of Monte Cristo (It’s 1838 at this point in the novel)

Interestingly the opera was recently revived at London’s Royal Opera House apparently without much success.