开发者

Performance difference between command line (compiled) PHP and Java applications

I would like to know if anybody has experience with the following scenario:

  • linux console based, deamon-like application, running in infinite loop, taking some data from stdin, processing data, outputting some data to stdout

I'm not asking for compilation performance. Application is going to be run for about 24 hours then restarted. In both cases application is compiled and run inside some kind of virtual machine, php-runtime and JVM.

The question is what will be the difference in performance of t开发者_C百科hat application written in PHP and in Java.

I have such application in PHP but wondering is it worth to spend a time to rewrite it to Java.


This will depend on your requirements. How fast does it need to run? Is it currently running within acceptable parameters? Will it have an increase in usage? Will that increase cause it to fall outside the threshold of speed?

That being said, drive space is cheaper than memory. If you already have it working, keep PHP.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜