[PerlChina] CGI vs php, asp

warhua warhua at gmail.com
Wed Apr 11 22:03:32 PDT 2007


但现在似乎很少人用perl cgi 了。。。。为什么呢?




warhua
2007-04-12



发件人: 万朝伟
发送时间: 2007-04-12 10:22:21
收件人: shijialee at gmail.com; china-pm at pm.org
抄送: 
主题: Re: [PerlChina] CGI vs php, asp

大型应用谁也不敢只用一个单一的技术,往往还有代理技术
但是小型的应用Perl CGI还是够用的,不用担心

就Web程序而言,FastCGI比其他都快,其次是jsp,然后php,asp,mod_perl就差不多了,至于asp.net我没有测试过,效率应该不差,估计和jsp差不多

我认为最重要的是开发速度和维护的效率,至于程序跑的效率,应该不是问题考虑的关键

 
在07-4-10,Qiang ( James ) Li <shijialee at gmail.com> 写道: 
Err.. 请不要把 digest 的内容也包括到 email 里。

Uliyas Fan wrote:
> 我想了解下用perl写的CGI的performance怎么样?他和其他的CGI,jsp,asp,php 
> 相比的优缺点各是什么?

perl 写的 CGI 只适用于不要求速度,访问量小的环境,比如公司内部。在 CGI
下,每次你的 .pl 或 .cgi 程序调用的时候都开启一个 perl process, 运行结束
后,这个 perl process 就退出了。CGI 和 fastcgi 和 mod_perl 环境没法比。
mod_perl 下, perl process ,module 等都 cache 到内存用来提速。 

php 运行在 mod_php + apache 和 mod_perl 实现差不多。 jsp, asp 类似。具体
速度比我就不清楚了。

> 我现在用perl主要写一些测试脚本,简单的快速的。因为我是做软件测试的。^_^
>

Test::More! Test::Exception!! Test::WWW::Mechanize!!  我正试着在 Perl 开
发中运用更多的 testing :) 

> --
> 樊闻斌
>
>

Qiang
_______________________________________________
China-pm mailing list
China-pm at pm.org
http://mail.pm.org/mailman/listinfo/china-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20070412/8642cedd/attachment.html 


More information about the China-pm mailing list