PHP vs. Javascript User Performance

I know that it is not always possible to exchange an implementation on the server side (e.g. PHP) from the client side (e.g. Javascript), but there are many cases where this is possible (especially the layout material), and therefore I am looking for some kind of research or resource , which shows a performance comparison between a PHP-based implementation and a Javascript-based implementation of a web page (or website).

In particular, I am interested in introducing e-commerce (the basket), since there are apparently two schools of thought in this regard (for example, the osCommerce / Zen-Cart camp versus the Magento / OpenCart camp).

Intuitively, it seems that the Javascript-based implementation transfers the processing power requirements for the client, thus balancing the load on resources and is scalable and best for shared web hosting. On the other hand, PHP will be more suitable for sites without a lot of traffic or those that have a lot of host server processing power.

But this is all intuitively clear, and it would be great to see that some numbers or graphs show differences in performance as a function of hits, client viewing platform, bandwidth, etc.

Is there such a study?

+4
source share
2 answers

I do not know the research specific to your question, but the following answer may help:

jQuery vs. PHP - Performance Comparison

"If 10 ^ 5 users request this, you can see some difference if you allow jQuery to do this: everyone does it once (and does not see the difference), but your server receives less than 10 ^ 5 checks."

+1
source

This is not a question, but a discussion. Continue stack overflow only for specific examples and questions. There are many forums for these kinds of things.

TRY and answer your thoughts; the two are completely different technologies, so comparison is a moot point. If you have a shopping website, it will still run PHP and the database, so queries will always go through PHP to get the information you need, whether it is direct PHP or PHP with AJAX.

+1
source

All Articles