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: