How do you know what the performance will be in what language or needs to be, in numerical terms, before you are running the system in practice?
Also I've seen UX research that established some guidelines for how long something can take while still feeling responsive allowing a user to remain focused.
Knowing you can achieve the required/desired performance in any given language is mostly a matter of experience solving similar problems.