超级计算机囧囧囧's Archivers

From admin on 2013-07-21 22:28:58

php中静态方法的性能

============Which method========================Time======
Inline calculation                             0.0805 s
Normal function call                           0.3438 s
Normal method called through object            0.4118 s
Static method called statically                0.4280 s
Unspecified method called through object()     0.4294 s
Unspecified method called statically()         0.6960 s


静态调用非静态方法在性能和内存上都不占优势;
因此,静态调用非静态方法不可取。

查看完整版本: php中静态方法的性能

Tags:


©超级计算机囧囧囧