behave vs do duty

behave

verb
  • To act in a polite or proper way. 

  • To conduct (oneself) well, or in a given way. 

  • To act, conduct oneself in a specific manner; used with an adverbial of manner. 

do duty

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