Zend Amf vs. AMFPHP – AMFPHP FTW! though only a bitter sweet win.
Today I put AMFPHP and Zend Amf 1.73 to the test. Right away I notice the lack of mysql recordset support in zend amf so right out of the box it had a disadvantage to AMFPHP. The second thing I noticed is the lack of gzip out of the box for Zend Amf. There maybe a way to use gzip in Zend Amf but it would require that you knew how to make it work, AMFPHP on the other hand does not.
I used a simple php class to call a single table that had 10,000 rows. Each row had 1 varchar, 1 text and 1 int. Using Charles Proxy debugger I found this.
Zend AMF with while loop to make an array of the mysql_query as a result.
AMFPHP with the same while loop as zend amf to make an array of the mysql_query as a result.
AMFPHP with mysql_query as a direct result. No while loop.. Though slightly bigger in size it was still faster and comparably so to Zend amf.
The biggest thing I can see is the fact that 1: you would have to loop through the results for Zend and 2: there is no gzip support out of the box.
With Amfphp being the easier out of the box with better over all optimization via gzip why does the site look like this?
With no updates since 1/20/08 20080120.zip which only was tiny and came after 5/13/07 20070513.zip we still only have a beta amfphp, where as Zend AMF gets backed by adobe and a lead manager that was suppose to take over AMFPHP only to do little to nothing with it. I know that I am being critical of Wade Arnold and he may very well be a very nice guy with a big hart, but this is not ok. Here we are over 1 and half years since that last major update and a year later after he has taken management and not one significant update by Wade Arnold and a over all loss in quality in the site. Wade Arnold continues to say that AMFPHP is not going to die. I’m sorry but I just don’t believe him any more, and I am completely underwhelmed by Zend Amf.
I only wish that I could do something to help. what a shame.
**Please note that I could only vouch for what charles web proxy was showing and have no other proof or dispro0f of the bench marks of AMFPHP vs. Zend Amf.**





