dead-end vs give up the ghost

dead-end

verb
  • To come to a dead-end. 

adj
  • Going nowhere; blocked. 

noun
  • A road with no exit. 

  • A position that offers no hope of progress. 

give up the ghost

verb
  • To cease clinging to life; to die. 

  • To cede a commitment to or identification with. 

  • To quit; to cease functioning. 

How often have the words dead-end and give up the ghost occurred in a corpus of books? (source: Google Ngram Viewer )