Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Sat, 28 Dec 2013 17:18:54 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.programming Subject: Re: Perl or PHP? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <98a3pa-0sq.ln1@luuk.invalid.lan> Lines: 47 NNTP-Posting-Host: 2001:980:9089:1:d7c:bc08:8c3c:1493 X-Trace: 1388247601 news.xs4all.nl 2868 [2001:980:9089:1:d7c:bc08:8c3c:1493]:37529 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.programming:4059 On 28-12-2013 17:11, Victor Porton wrote: > Luuk wrote: > >> On 28-12-2013 16:49, Victor Porton wrote: >>> I consider to make a startup (a Web site with many MySQL InnoDB queries >>> on each page) and hope to sell it to Google. >>> >>> Perl or PHP? Please be argumented. >>> >>> First, whose performance is greater: Perl or PHP? >>> >> >> ~/temp> time ./test.pl >test.tmp >> >> real 0m0.004s >> user 0m0.000s >> sys 0m0.004s >> ~/temp> time ./test.php >test.tmp >> >> real 0m0.042s >> user 0m0.026s >> sys 0m0.016s >> luuk@opensuse:~/temp> > > Could you disclose the content of files test.pl and test.php? > >> But the question of course is, what are your comparing? >> >> ;-) > 1 #!/usr/bin/perl 2 3 for ($count = 1000; $count >= 1; $count--) { 4 print "$count "; 5 } and 1 #!/usr/bin/php 2 3 =1; $f--) 5 echo "$f ";