The performance of a web service is largely dependant on how many calls and how quickly it can make calls to external services. If a given system is making 2 DB calls when it could instead make one, then that should be the initial focus for optimisation.
Indeed, if a language and framework has slow code execution, but facilitates efficient querying, then it can still perform relatively well.