Heim  >  Artikel  >  Backend-Entwicklung  >  探讨应当如何提高PHP递归效率_PHP教程

探讨应当如何提高PHP递归效率_PHP教程

WBOY
WBOYOriginal
2016-07-15 13:30:38944Durchsuche

我们在实际代码编程中,会发现在我的IIS 服务器上(CGI)模式,我的PHP递归效率测试结果是:

非递归调用的花费:0.036401009559631
递归调用的花费:0.053439617156982

在我的Apache 服务器上,我的测试结果是:

非递归调用的花费:0.022789001464844
递归调用的花费:0.014809131622314

PHP递归效率的结果完全相反,而PHP的版本是一样的。

看来对PHP递归效率要具体问题具体分析了。


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/446282.htmlTechArticle我们在实际代码编程中,会发现 在我的IIS 服务器上(CGI)模式,我的PHP递归效率测试结果是: 非递归调用的花费:0.036401009559631 递归调用...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn