I noticed that the operations such as: +,-,*,/ are slower than in native php. For example, this code: <pre> <?php $o = 0; for( $x = 0; $x < 500; ++$x ) { for( $y = 0; $y < 500; ++$y ) { for( $z = 0; $z < 500; ++$z ) { $o += $x * $y * $z; } } } printf("%f", $o); ?> </pre> is 2x faster in php: native PHP: <pre> real 0m22.390s user 0m13.020s sys 0m0.270s </pre> compiled: <pre> real 0m42.287s user 0m0.020s sys 0m0.040s </pre> But, the same code without this line: <pre>$o += $x \* $y \* $z;</pre> has better time for compiled code: native php: <pre> real 0m10.238s user 0m9.320s sys 0m0.170s </pre> compiled: <pre> real 0m6.433s user 0m0.010s sys 0m0.000s </pre>
Activity
scottmac commentedon Feb 23, 2010
I enabled compiler optimizations today,
native php
real 0m18.184s
user 0m18.050s
sys 0m0.030s
HipHop:
real 0m12.211s
user 0m12.120s
sys 0m0.050`
kormichu commentedon Feb 28, 2010
Great! My result:
native php
HipHop:
change logging in exit handlers to not avoid locking
Use static for async dispatcher in mcgen-async.cpp
Fix deadlock in SubprocessScheduler
Fix two deadlocks in SubprocessScheduler
Fix deadlock in SubprocessScheduler (#9737)
Add e2e regression test for Cpp2Channel::writeError upgrade-teardown UAF