PHP 或 vanilla Perl CGI 更快吗? [英] Is PHP or vanilla Perl CGI faster?

查看:42
本文介绍了PHP 或 vanilla Perl CGI 更快吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 Apache 共享托管服务器开发 Web 应用程序.我已经用 Perl 编写了一些代码,但我最近发现,令我惊讶的是,共享托管服务提供商没有提供 mod_perl 或安装它的方法.

I'm developing a web app for an Apache shared hosting server. I have already written some code in Perl but I recently found out, to my surprise, the shared hosting provider does not provided mod_perl or a way to install it.

我有点担心在没有 mod_perl 的情况下通过 CGI 运行 Perl Web 应用程序会使其变得很慢?我是否应该将所有代码都切换到 PHP,这样会更快吗?

I have been a bit worried that running a Perl web app through CGI without mod_perl would make it very slow? Should I switch all of my code to PHP instead, would that be faster?

我首先选择 Perl 的原因是,我对 Perl 的熟悉程度超过了 PHP.我还希望能够在 Web 开发领域之外使用我的 Perl 库.

The reason I chose Perl in the first place is, I'm very familiar with Perl more than PHP. Also I wanted to be able to use my Perl libraries outside the realm of web development.

因此,如果你们中的任何一位对 Apache Web 开发有经验,您能否就我应该采取的方向进行一些说明.

So if any of you are experienced with Apache web development, can you shed some light as to which direction should I take.

为了这个问题,假设 Web 应用程序每天将获得 500 多次点击.

For the sake of this question, lets say the web application will get 500+ hits a day.

如果没有 mod_perl,PHP 和 Perl 哪个会更快?

Which would be faster PHP or Perl without mod_perl?

预先感谢您的帮助.

推荐答案

每天只有 500 次点击,您几乎可以编写任何代码,而不必担心速度变慢.每天 500 次点击平均为每 3 分钟大约 1 页.即使假设点击的非正态分布,您也不应该为这么小的流量担心这一点.

At only 500 hits a day, you could write your code in just about anything and not have to worry about slow downs. 500 hits a day evens out to about 1 page every 3 minutes. Even assuming a non-normal distribution of hits, you shouldn't really worry about this with such small traffic numbers.

这篇关于PHP 或 vanilla Perl CGI 更快吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆