While Daff s explanation of PHP vs JSP is technically wrong, the essential gist of his post is correct: choose the language that is best for you. Only very rarely will you find yourself in a position where performance really matters badly. At that point, you are much more likely to be able to make significant architectural optimizations in your language of choice - and these optimizations are likely to have significantly more effect than the difference between PHP and JSP.
One of the core rules of programming has always been to avoid premature optimization - if for no other reason than because until you re actually under pressure you don t know what you actually need to optimize, nor do you have a means of determining whether it worked.
In the event that you believe there s a possibility you may face performance issues, no website can help you. The most vital thing is to create your own load testing benchmarks that represent the specifics of how your site works, simulating how your users do things. Only once you have done that are you able to move on to tweaking your code, implementing things like caching, load balancing, data and request partitioning etc with any confidence that the changes you are making are having a positive impact on your site performance.
There are books specifically about the process of optimization in general, but the key sequence is this:
- Benchmark
- Change test
- Benchmark to see if change indicates performance improvement
- Go live
- Evaluate live response to see if benchmark prediction was correct
(People forget #5 a lot and cause themselves grief)
If you re going to spend time worrying about performance, spend time setting up that sequence, don t spend time worrying about your language choice.