#38630 [Opn->Bgs]: OOP is still 3x slower than proc code.

From: Date: Mon, 28 Aug 2006 16:24:58 +0000
Subject: #38630 [Opn->Bgs]: OOP is still 3x slower than proc code.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101444@lists.php.net to get a copy of this message
ID: 38630 Updated by: tony2001@php.net Reported By: dobes at lnx dot cz -Status: Open +Status: Bogus Bug Type: Performance problem Operating System: winXP PHP Version: 5.1.5 New Comment: You are benchmarking totally different things. <?php function foo() { bar(); } foo(); ?> is always slower than <?php bar(); ?> in this universe. Previous Comments: ------------------------------------------------------------------------ [2006-08-28 16:06:37] 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). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38630&edit=1

« previous php.bugs (#101444) next »