3 ms·
He's benchmarking based off of a 10 line PHP program and then extrapolating that this is why HPHP is needed?
by paul 17y ago
He's benchmarking based off of a 10 line PHP program and then extrapolating that this is why HPHP is needed?
- codexon 17y agoIt's a joke. HPHP's 50% speed boost does not make up for a templating engine that 43 times slower.
- paul 17y agoNo, it's stupid because a 10 line program isn't the least bit representative.
- danudey 17y agoThough he points out that if your PHP script spends most of its time doing algorithmic calculations, waiting on I/O, etc., or if you're using an external template library already, then you might well not notice the difference anyway.
- codexon 17y agoIt doesn't matter if it isn't the least bit representative. Being 43 times slower is going to make a noticeable impact on latency especially when the templates are likely to be larger than the example shown.
- paul 17y agoNo, it's completely meaningless unless your programs are only 10 lines long. You have no idea what part of it is slower.
- rbanffy 17y agoHis benchmark is all about the template engine because that's what XHP changes. The impact of XHP and HPHP depend very much on what you are doing to serve your requests.
- mdg 17y agoThe title of the actual page is called "A quick look at XHP"