do duty vs malfunction

do duty

malfunction

verb
  • To fail to function. 

  • To function improperly. 

noun
  • Failure to function. 

  • Faulty functioning. 

How often have the words do duty and malfunction occurred in a corpus of books? (source: Google Ngram Viewer )