Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #4059

Re: Perl or PHP?

Date 2013-12-28 17:18 +0100
From Luuk <luuk@invalid.lan>
Newsgroups comp.programming
Subject Re: Perl or PHP?
References <l9mruq$pn8$1@speranza.aioe.org> <db93pa-d0p.ln1@luuk.invalid.lan> <l9mt81$sqg$1@speranza.aioe.org>
Message-ID <98a3pa-0sq.ln1@luuk.invalid.lan> (permalink)

Show all headers | View raw


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 <?php
   4 for ($f=1000; $f>=1; $f--)
   5         echo "$f ";

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Perl or PHP? Victor Porton <porton@narod.ru> - 2013-12-28 17:49 +0200
  Re: Perl or PHP? Victor Porton <porton@narod.ru> - 2013-12-28 17:51 +0200
  Re: Perl or PHP? Luuk <luuk@invalid.lan> - 2013-12-28 17:03 +0100
    Re: Perl or PHP? Victor Porton <porton@narod.ru> - 2013-12-28 18:11 +0200
      Re: Perl or PHP? Luuk <luuk@invalid.lan> - 2013-12-28 17:18 +0100
        Re: Perl or PHP? "BartC" <bc@freeuk.com> - 2013-12-28 22:13 +0000
          Re: Perl or PHP? Luuk <luuk@invalid.lan> - 2013-12-29 17:29 +0100
  Re: Perl or PHP? Victor Porton <porton@narod.ru> - 2013-12-28 20:40 +0200
    Re: Perl or PHP? Öö Tiib <ootiib@hot.ee> - 2013-12-28 12:26 -0800

csiph-web