do something on the spur of the moment vs throw something together

do something on the spur of the moment

throw something together

How often have the words do something on the spur of the moment and throw something together occurred in a corpus of books? (source: Google Ngram Viewer )