3 ms·
> Even old pre-7 PHP was much faster than Ruby, Python, and others. No, PHP 7 was an impressive step forward in speed because it switched to better bytecode an
by morelisp 3y ago
> Even old pre-7 PHP was much faster than Ruby, Python, and others.
No, PHP 7 was an impressive step forward in speed because it switched to better bytecode and object representations internally, but Python wiped the floor with most versions of PHP 5 for exactly the same reason. (PHP 5.5 with opcaching was roughly comparable.)
But this comparison overall is like trying to find the strongest two-year-old...
- dahwolf 3y agoIt's a ridiculous thing to say that any version of PHP is slow. You could run PHP5 today and it's still not slow by any modern standard. Even on the hardware of 15 years ago almost any script you throw at it finishes in single digit milliseconds. How is that slow? I'd like to meet the developers that consider this slow.
- ndriscoll 3y agoI guess it depends on what the script is doing, but I'd consider that slow. Code I've worked on in Scala takes more like 50-60 microseconds per http request for a json CRUD type of thing (plus latency to wait for the db, but it can serve other requests during that time).
- morelisp 3y agoLadies and gentlemen, the strongest two-year-old.
- coldtea 3y agoThe strongest within a certain category is still a useful concept. If one is looking for a strong pickup truck, they don't care that a 18-wheeler is stronger, as that's in another category they have no use for. One might want to pick among "scripting languages with suitability for web coding and great adoption" for example...