|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-28 16:06 UTC] dobes at lnx dot cz
Description: ------------ I checked small benchmark described on http://destiney.com/benchmarks/db_insert_select (wrote when PHP5.0.3 was current) and I get quite similar result ;-( But I checked PHP5.1.6 (this is not in your PHP version list). I think bad perbormance of OOP code is bug and not feature. Reproduce code: --------------- look on http://destiney.com/benchmarks/db_insert_select, it's longer than 20 lines. Expected result: ---------------- Just shorter run-time of OOP code. Actual result: -------------- Runtime of OOP scriot is still 3x longer than proc code (the same as in PHP5.0.3). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
You are benchmarking totally different things. <?php function foo() { bar(); } foo(); ?> is always slower than <?php bar(); ?> in this universe.