[PerlChina] CGI vs php, asp

Qiang ( James ) Li shijialee at gmail.com
Tue Apr 10 05:11:19 PDT 2007


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


More information about the China-pm mailing list