come through with flying colors vs come up to scratch

come through with flying colors

come up to scratch

How often have the words come through with flying colors and come up to scratch occurred in a corpus of books? (source: Google Ngram Viewer )