to the nines vs to the nth degree

to the nines

prep
  • To perfection; fully, wholly. 

to the nth degree

adv
  • As much as possible, to the greatest extent. 

How often have the words to the nines and to the nth degree occurred in a corpus of books? (source: Google Ngram Viewer )