2 ms·
It's not as surprising if you look at the primary use case of PHP. It takes a request, does a bunch of stuff, and returns the result to the web server. And it n
by bityard 4y ago
It's not as surprising if you look at the primary use case of PHP. It takes a request, does a bunch of stuff, and returns the result to the web server. And it needs to do all of it before the user who clicked on the link gets bored and goes somewhere else. (Or the API client calling it times out...)
- coldtea 4y agoHow is that relevant? This is not about it being faster for "it's primary use case" (optimized for that, etc). It's generally faster than Python in doing the same things as Python does, unrelated to web too.
- lmm 4y agoThe point is that PHP's primary, original use case is latency-sensitive in a way that Python's isn't. So it's always been subject to more performance pressure.