On Sunday 02 June 2002 02:12, Mark Charette wrote: > From: Jason Wong [mailto:[EMAIL PROTECTED]] > > >Try comparing reading 10K rows from a DB using Perl and PHP would be a > > more useful benchmark. > > --- > When's the last time you wrote a Web page that needed 10K rows displayed?
Never. Perhaps you didn't follow the thread. The gist of it was that someone was concerned that the code which does looping in PHP was slow (compared to Perl) and would like to see it increased in speed. What I was trying to point out was that the time it takes to do the loop is (probably) insignificant compared to whatever is happening /inside/ the loop. Thus my suggestion. Of course no (sensible) person would want to display 10K rows in a web-page anymore than one would want to display all the prime numbers from 1 to 10 trillion. However in the context of what PHP is (usually) used for it is a better measure of speed and more relevant than calculating those prime numbers. But it would be hardly useful to compare the speed of retrieval of a single row as other factors would make it unreliable. How many benchmarks do you see where the operation is only performed once? I would say not many. > Writing good _and relevant_ benchmarks is one of the more difficult things > to do in CS. Personally, I look at the time it takes me to code and debug > things since that's the most expensive part of the cost equation to my > customers - hardware's cheap compared to me. I can get something of > production quality up and running on PHP much faster than I can in Perl - > probably due to 20 years of programming in C - so my customers are happy. > Considering that 95% of the time the bottleneck is the bandwidth, not the > application code, and the other 5% of the bottleneck is in the database > application section, my customers don't demand any artificial language > benchmarks. And I agree, the MS method of throwing in hardware to mask inefficient programming is quite cost-effective. That is why today my 128MB/500MHz PIII system feels just a nippy as my 8MB/8MHz Amiga did 10 years ago ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Take everything in stride. Trample anyone who gets in your way. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php