Is PHP still slower than Perl?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • @

    Is PHP still slower than Perl?

    A benchmark in 2002 showed PHP is much slower in shell or when Apache has
    Mod_Perl.

    With the new PHP kissing Java's ass, Perl is once again the #1 CGI choice.

    Java is for a big team in short time to develope something slow.

    ASP is a joke.

    PHP is a kid.

    Perl is around.

    C. I don't know why it is not popular. It should be. Maybe those Web
    inventors always thought in Linux so they never wanted to push something
    binary so they selected Perl, a slower scripting.


  • Daniel Tryba

    #2
    Re: Is PHP still slower than Perl?

    In comp.lang.php @ <asdf@asdfsadf. com> wrote:[color=blue]
    > A benchmark in 2002 showed PHP is much slower in shell or when Apache has
    > Mod_Perl.
    >
    > With the new PHP kissing Java's ass, Perl is once again the #1 CGI choice.[/color]

    If you want to troll, please put a little more effort in it.

    Like make up some benchmarks to support your facts.

    --

    Daniel Tryba

    Comment

    • Joe Smith

      #3
      Re: Is PHP still slower than Perl?

      @ wrote:
      [color=blue]
      > C. I don't know why it is not popular.[/color]

      I'd say it is because C does not have strings as a native data type.
      Other than initializing an array of char, the C compiler has no
      string manipulation built in; it requires library functions to do that.
      -Joe

      Comment

      • Janwillem Borleffs

        #4
        Re: Is PHP still slower than Perl?

        @ wrote:[color=blue]
        > With the new PHP kissing Java's ass, Perl is once again the #1 CGI
        > choice.
        >[/color]

        You mean this regarding PHP 5's OO model? You have never looked at Perl 6's
        OO model, haven't you?


        JW



        Comment

        • John Bokma

          #5
          Re: Is PHP still slower than Perl?

          "@" <asdf@asdfsadf. com> wrote in news:hOSdnRvNIL PWwsPcRVn-jw@rogers.com:
          [color=blue]
          > A benchmark in 2002 showed PHP is much slower in shell or when Apache
          > has Mod_Perl.
          >
          > With the new PHP kissing Java's ass, Perl is once again the #1 CGI
          > choice.[/color]

          For me Perl is #1 (if possible) because PHP is probably the worst designed
          language ever. I am not sure if you can already prepare statements (MySQL),
          something I used in Perl ages ago, or still have to use all those
          whatsamacalled_ quote_shebang garbage.


          --
          John MexIT: http://johnbokma.com/mexit/
          personal page: http://johnbokma.com/
          Experienced programmer available: http://castleamber.com/
          Happy Customers: http://castleamber.com/testimonials.html

          Comment

          • Tony Marston

            #6
            Re: Is PHP still slower than Perl?


            "John Bokma" <postmaster@cas tleamber.com> wrote in message
            news:Xns957679B FC204Bcastleamb er@130.133.1.4. ..[color=blue]
            > "@" <asdf@asdfsadf. com> wrote in news:hOSdnRvNIL PWwsPcRVn-jw@rogers.com:
            >[color=green]
            >> A benchmark in 2002 showed PHP is much slower in shell or when Apache
            >> has Mod_Perl.
            >>
            >> With the new PHP kissing Java's ass, Perl is once again the #1 CGI
            >> choice.[/color]
            >
            > For me Perl is #1 (if possible) because PHP is probably the worst designed
            > language ever. I am not sure if you can already prepare statements
            > (MySQL),[/color]

            Yes you CAN use prepare statemetnts with MySQL. You should be aware that
            this is a MySQL feature, not a PHP feature.
            [color=blue]
            > something I used in Perl ages ago, or still have to use all those
            > whatsamacalled_ quote_shebang garbage.[/color]

            If you don't like PHP then why are you posting to the PHP newsgroup?

            --
            Tony Marston

            This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




            Comment

            • @

              #7
              Re: Is PHP still slower than Perl?

              > > A benchmark in 2002 showed PHP is much slower in shell or when Apache
              has[color=blue][color=green]
              > > Mod_Perl.
              > >
              > > With the new PHP kissing Java's ass, Perl is once again the #1 CGI[/color][/color]
              choice.[color=blue]
              >
              > If you want to troll, please put a little more effort in it.
              >
              > Like make up some benchmarks to support your facts.
              >
              > --
              >
              > Daniel Tryba
              >[/color]

              google with PHP PERL BENCHMARK, you will see the results. That is the one
              back from 2002.




              Comment

              • Darin McBride

                #8
                Re: Is PHP still slower than Perl?

                Janwillem Borleffs wrote:
                [color=blue]
                > @ wrote:[color=green]
                >> With the new PHP kissing Java's ass, Perl is once again the #1 CGI
                >> choice.
                >>[/color]
                >
                > You mean this regarding PHP 5's OO model? You have never looked at Perl
                > 6's OO model, haven't you?[/color]

                First off, as Perl 6 doesn't really exist yet, the original flame^Wpost
                must be comparing against Perl 5.

                Second, Perl 6's OO model could yet do a few 180's.

                Third, who said anyone would use Perl 6 for CGI?

                Fourth, who said Perl 6's performance would suck?

                Fifth, I'm not saying PHP 5's performance sucks - I'm just inferring it
                from @'s flame^Wpost.

                Comment

                • Tassilo v. Parseval

                  #9
                  Re: Is PHP still slower than Perl?

                  Also sprach Joe Smith:
                  [color=blue]
                  > @ wrote:
                  >[color=green]
                  >> C. I don't know why it is not popular.[/color]
                  >
                  > I'd say it is because C does not have strings as a native data type.
                  > Other than initializing an array of char, the C compiler has no
                  > string manipulation built in; it requires library functions to do that.[/color]

                  That's a distinction in C that's moot. It has no built-in IO mechanisms
                  either. You have to include a header to get this functionality. But
                  nonestheless, it's still part of the language.

                  Tassilo
                  --
                  $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_ $;//::niam/s~=)]3[))_$-3(rellac(=_$({
                  pam{rekcahbus}) (rekcah{lrePbus })(lreP{rehtona bus})!JAPH!qq(r ehtona{tsuJbus# ;
                  $_=reverse,s+(? <=sub).+q#q!'"q q.\t$&."'!#+sex isexiixesixeseg ;y~\n~~dddd;eva l

                  Comment

                  • Daniel Tryba

                    #10
                    Re: Is PHP still slower than Perl?

                    In comp.lang.php @ <asdf@asdfsadf. com> wrote:[color=blue][color=green]
                    >>
                    >> If you want to troll, please put a little more effort in it.
                    >>
                    >> Like make up some benchmarks to support your facts.[/color]
                    >
                    > google with PHP PERL BENCHMARK, you will see the results.[/color]

                    That is not how it works: you make a claim, so you supply your proof. And
                    I'm more interested in perl/php vs. java.
                    [color=blue]
                    > That is the one
                    > back from 2002.[/color]

                    2002 is so 2 years ago, that like ancient man.

                    --

                    Daniel Tryba

                    Comment

                    • John Bokma

                      #11
                      Re: Is PHP still slower than Perl?

                      "Tony Marston" <tony@NOSPAM.de mon.co.uk> wrote in
                      news:cjmr56$kjq $1$8300dec7@new s.demon.co.uk:
                      [color=blue]
                      >
                      > "John Bokma" <postmaster@cas tleamber.com> wrote in message
                      > news:Xns957679B FC204Bcastleamb er@130.133.1.4. ..[color=green]
                      >> "@" <asdf@asdfsadf. com> wrote in
                      >> news:hOSdnRvNIL PWwsPcRVn-jw@rogers.com:
                      >>[color=darkred]
                      >>> A benchmark in 2002 showed PHP is much slower in shell or when
                      >>> Apache has Mod_Perl.
                      >>>
                      >>> With the new PHP kissing Java's ass, Perl is once again the #1 CGI
                      >>> choice.[/color]
                      >>
                      >> For me Perl is #1 (if possible) because PHP is probably the worst
                      >> designed language ever. I am not sure if you can already prepare
                      >> statements (MySQL),[/color]
                      >
                      > Yes you CAN use prepare statemetnts with MySQL.
                      > You should be aware
                      > that this is a MySQL feature, not a PHP feature.[/color]

                      How can I use it from PHP?
                      [color=blue][color=green]
                      >> something I used in Perl ages ago, or still have to use all those
                      >> whatsamacalled_ quote_shebang garbage.[/color]
                      >
                      > If you don't like PHP then why are you posting to the PHP newsgroup?[/color]

                      Look at the headers, this has been crossed to a Perl group. Besides, I
                      hope the PHP group isn't only there for people who say it's a great
                      language? (which it isn't).

                      --
                      John MexIT: http://johnbokma.com/mexit/
                      personal page: http://johnbokma.com/
                      Experienced programmer available: http://castleamber.com/
                      Happy Customers: http://castleamber.com/testimonials.html

                      Comment

                      • @

                        #12
                        Re: Is PHP still slower than Perl?

                        > >>[color=blue][color=green][color=darkred]
                        > >> If you want to troll, please put a little more effort in it.
                        > >>
                        > >> Like make up some benchmarks to support your facts.[/color]
                        > >
                        > > google with PHP PERL BENCHMARK, you will see the results.[/color]
                        >
                        > That is not how it works: you make a claim, so you supply your proof. And
                        > I'm more interested in perl/php vs. java.
                        >[color=green]
                        > > That is the one
                        > > back from 2002.[/color]
                        >
                        > 2002 is so 2 years ago, that like ancient man.
                        >[/color]

                        I personally did my own benchmark in late 2003. I am not an expert at
                        benchmarking softwares, but it is true Perl is much faster than PHP from my
                        result. I used PHP/Perl in web enviroment for printing one line per hit.


                        Comment

                        • Doug

                          #13
                          Re: Is PHP still slower than Perl?



                          @ wrote:
                          [color=blue]
                          > C. I don't know why it is not popular. It should be. Maybe those Web
                          > inventors always thought in Linux so they never wanted to push something
                          > binary so they selected Perl, a slower scripting.[/color]

                          Why don't you try assembly!!!! I bet you can get that to be running even
                          faster than C!!!

                          good luck,
                          -d

                          Comment

                          • Michael Vilain

                            #14
                            Re: Is PHP still slower than Perl?

                            In article <Xns9576C5FB187 DCcastleamber@1 30.133.1.4>,
                            John Bokma <postmaster@cas tleamber.com> wrote:
                            [color=blue]
                            > "Tony Marston" <tony@NOSPAM.de mon.co.uk> wrote in
                            > news:cjmr56$kjq $1$8300dec7@new s.demon.co.uk:
                            >[color=green]
                            > >
                            > > "John Bokma" <postmaster@cas tleamber.com> wrote in message
                            > > news:Xns957679B FC204Bcastleamb er@130.133.1.4. ..[color=darkred]
                            > >> "@" <asdf@asdfsadf. com> wrote in
                            > >> news:hOSdnRvNIL PWwsPcRVn-jw@rogers.com:
                            > >>
                            > >>> A benchmark in 2002 showed PHP is much slower in shell or when
                            > >>> Apache has Mod_Perl.
                            > >>>
                            > >>> With the new PHP kissing Java's ass, Perl is once again the #1 CGI
                            > >>> choice.
                            > >>
                            > >> For me Perl is #1 (if possible) because PHP is probably the worst
                            > >> designed language ever. I am not sure if you can already prepare
                            > >> statements (MySQL),[/color]
                            > >
                            > > Yes you CAN use prepare statemetnts with MySQL.
                            > > You should be aware
                            > > that this is a MySQL feature, not a PHP feature.[/color]
                            >
                            > How can I use it from PHP?[/color]

                            Buy one of the many PHP books that mentions building sites and using
                            MySQL. O'Reilly has PROGRAMMING PHP, which I used to develop my site.
                            There are others, which I leave to you to investigate.

                            If you're to strapped for funds to buy something, there's


                            [color=blue]
                            >[color=green][color=darkred]
                            > >> something I used in Perl ages ago, or still have to use all those
                            > >> whatsamacalled_ quote_shebang garbage.[/color]
                            > >
                            > > If you don't like PHP then why are you posting to the PHP newsgroup?[/color]
                            >
                            > Look at the headers, this has been crossed to a Perl group. Besides, I
                            > hope the PHP group isn't only there for people who say it's a great
                            > language? (which it isn't).[/color]

                            One thing I'm unconvinced of is security. With database applications, I
                            have to put passwords to the database inside php scripts and they have
                            to be readable by the web server which runs under the nobody UID.
                            Instead, I chose to do parts of my site with Perl CGI and CGIwrap. This
                            allows me to protect the files from group or other access as these
                            scripts run as my account's UID.

                            I found recently that you can put such files outside of the server's
                            DOCUMENT ROOT and get access through the php include_path global, but
                            the web server still needs access to the file.

                            One thing I like about php is that each script is stored in the usual
                            place in the user's document directory. The files are executed and the
                            output is displayed without having to put everything in the ScriptAlias
                            directory (usually cgi-bin).

                            While php has PEAR, a depository for additional libraries written by
                            others, perl has CPAN which is at least 2 orders of magnitude larger and
                            more diverse. There's also lots of network and system-level things you
                            can do with perl and usually someone's already done it in a CPAN module.

                            This thread is about as enlightening as "which car is better". It all
                            depends on where and how you're trying to get there.

                            --
                            DeeDee, don't press that button! DeeDee! NO! Dee...



                            Comment

                            • Tim Van Wassenhove

                              #15
                              Re: Is PHP still slower than Perl?

                              In article <vilain-6975D5.21011202 102004@comcast. dca.giganews.co m>, "Michael Vilain <vilain@spamcop .net>" wrote:[color=blue]
                              > One thing I'm unconvinced of is security. With database applications, I
                              > have to put passwords to the database inside php scripts and they have
                              > to be readable by the web server which runs under the nobody UID.
                              > Instead, I chose to do parts of my site with Perl CGI and CGIwrap. This
                              > allows me to protect the files from group or other access as these
                              > scripts run as my account's UID.[/color]

                              But you can use PHP in CGI too. And use suExec to run it under a
                              different uid.
                              [color=blue]
                              > I found recently that you can put such files outside of the server's
                              > DOCUMENT ROOT and get access through the php include_path global, but
                              > the web server still needs access to the file.[/color]

                              Chris Shiflett is an entrepreneur, product designer, and web developer.

                              [color=blue]
                              > One thing I like about php is that each script is stored in the usual
                              > place in the user's document directory. The files are executed and the
                              > output is displayed without having to put everything in the ScriptAlias
                              > directory (usually cgi-bin).[/color]

                              Once again, this is purely a webserver configuration issue.



                              --
                              Met vriendelijke groeten,
                              Tim Van Wassenhove <http://www.timvw.info>

                              Comment

                              Working...