do the work of vs function as

do the work of

function as

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