cat's pajamas vs greatest thing since sliced bread

cat's pajamas

greatest thing since sliced bread

noun
  • Something amazing, outstanding or praiseworthy, especially a relatively recent invention likely to improve people's lives. 

How often have the words cat's pajamas and greatest thing since sliced bread occurred in a corpus of books? (source: Google Ngram Viewer )