perform the function of vs serve as

perform the function of

serve as

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