Saturday, 17 August 2013

Can PHP as slow as this?

Can PHP as slow as this?

I translated the Havlak benchmark from Robert Hundt into PHP (see
description). You can find my version on github. The algorithm tries to
find loops in a tree. I tried to stay as close as possible to the java
version. Unfortunately compared to the java version it is unbelievable
slow and i cannot see a mistake so far. Whereas the java version needs
less than a minute to run, the PHP version needs more than 8 hours on my
client. So i guess there must be a mistake. But which one?

No comments:

Post a Comment