give one's all vs undertake

give one's all

verb
  • To make the utmost effort; to contribute, using all of one's abilities and resources. 

  • To lose one's life while making the utmost effort with full commitment. 

undertake

verb
  • To take upon oneself; to start, to embark on (a specific task etc.). 

  • To commit oneself (to an obligation, activity etc.). 

  • To pass a slower moving vehicle on the curbside rather than on the side closest to oncoming traffic. 

noun
  • The passing of slower traffic on the curbside rather than on the side closest to oncoming traffic. 

How often have the words give one's all and undertake occurred in a corpus of books? (source: Google Ngram Viewer )