Comment by ThalesX
And then you add a single HTTP request and everything tones down to the speed of the web. Or I/O. Or DB call.
More like: you add some javascript library and now the browser needs 5 seconds to run 10 MB of javascript.
You can still support millions of these requests per second if you just bake all of the dependencies directly in a small OS running on your fastest raspberry pi.