开发者

Python performance vs PHP [closed]

开发者 https://www.devze.com 2023-04-07 02:01 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I am an experienced PHP developer, and I would want to know what of both languages is better for web development.

I understand that there are a lot of factors to evaluate; but focusing in execution time, in your own experience making connections to a MySQL server, parsing and concatenating strings, and making several echoes (or prints), what language would you recommend me?

I cite this specific situations because are com开发者_运维问答mon for me, and I don´t calculate fibonacci sequences neither prime numbers, like are showed in several benchmarks.


Even if things aren't specifically integer comparison or string comparison problems, looking at those computations is a decent indication of how the language will perform in more complex tasks. Keep in mind, though, that web development isn't all about computation speed. Unless you're doing some fancy backend data processing (in which case PHP is really not appropriate) when it comes to things like generating pages: it's still often worth the small sacrifice in terms of speed/memory to make it much, much easier to develop.

Also: Python+MySql is kind of a pain, in my experience. It can be done. But it's not nearly as nice.

Which is faster, python webpages or php webpages? <- lots of stuff here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号