English 中文(简体)
PHP 业绩矩阵
原标题:PHP Performance Metrics

我目前正在为个人项目制定一个PHP MVC框架。 虽然我正在制定框架,但我很想知道,通过采用不同的优化技术,取得了值得注意的业绩。 我已实施了一个显示奇迹的粗木板级。

问题在于我没有执行时间的参照框架。 我非常接近该项目的开端,有数据库链接,有几次问询,但没有产出(有的纸张缩略语和徽标)。 目前有<代码>0.01917秒的执行时间。

I was expecting this to be lower but as I said before I have no frame of reference. I appreciate there are many variables to take into account when juding performance but I am hoping to find some sort of metric to
a) techniques to measure performance for example requests per second and
b) compare results for example; how a "moderately" sized PHP application on a "standard" webserver will perform. I appreciate "moderately" and "standard" are very subjective words so perhaps a table of known execution times for a particular application (eg StackOverFlow s executing time).

除执行时间外,还有哪些其他衡量业绩的技术?

查阅 它就Per II(RPS)申请进行了会谈。 如何计算? 我对目前执行<代码>0.01917秒的时间表示怀疑。 这似乎大大低于图表中引述的数字,特别是在你认为我目前有限的县级时。

最佳回答
问题回答

你可以用xdebug来描述你的法典。 但是,在发展进程中,你做得太早。 仅仅呼吁微型时间的行动就会放缓,因为它必须向该系统(PHP发动机外)发出呼吁。 每一个方面,目标设定、与另一个资源(即数据库)的联系都会增加很多相对而言的间接费用。

如果你设计你的系统非常友好,那么你就不必执行法典。 例如,语言压力非常缓慢。 体面的网络服务器上约有15页/秒。 它包含许多法典,并管理着许多法典。 但是,加上超级咖啡厅的花样和性能增加10x。 它通过创建海滩档案和采用一些阿帕奇规则开展工作,因此PHP必须完全操作。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签