When comparing Serverless Framework vs Google Cloud Functions, the Slant community recommends Serverless Framework for most people. In the question“What are the best serverless frameworks?” Serverless Framework is ranked 1st while Google Cloud Functions is ranked 3rd. The most important reason people chose Serverless Framework is:
Has support for several platforms such as Azure Functions, Cloud Functions, AWS Lambda and WebTasks.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Supports multiple platforms
Has support for several platforms such as Azure Functions, Cloud Functions, AWS Lambda and WebTasks.
Pro Extensive documentation
Pro Multi language
Write functions in Python, NodeJS, Java, Go, Scala, C# etc.
See Examples.
Pro Supports multiple languages
Cloud Functions, as of this writing, supports JavaScript, Python, Go and Java.
Pro Supports multiple sources of events
Cloud Functions can be triggered from PubSub and from HTTP events, for example.
Pro Frictionless to create
There is an inline editor in Google Cloud for writing and submitting/deploying cloud functions, so while it is possible to store a Cloud function as code in a repository you can try and experiment without getting to that point.
Cons
Con Limited languages and dependencies
Only the set of languages explicitly supported by Cloud Functions can be used; for more flexibility, I would highly recommend Google's other serverless environment, namely Cloud Run.