PHP vs Java performance on MySQL

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

    PHP vs Java performance on MySQL

    Does PHP work better than Java with MySQL? What are pros and cons of using
    PHP vs Java? Which one is faster?
    Can someone share the experience or point me to some good white papers or
    benchmarks? Thanks.


  • Louis-Philippe Huberdeau

    #2
    Re: PHP vs Java performance on MySQL

    I can't really give you details because I never made any benchmarks, but
    I don't think there is any difference. PHP uses the MySQL client
    library, and if you use native JDBC drivers for MySQL, you end up using
    the exact same library. In both cases, the slow down does not come from
    the client library anyway, it comes from the server actually processing
    the request (which isn't long anyway, in most cases).

    At that level, the language you choose for your application is a matter
    of convenience.

    --
    Louis-Philippe Huberdeau

    Rajesh Kapur wrote:[color=blue]
    > Does PHP work better than Java with MySQL? What are pros and cons of using
    > PHP vs Java? Which one is faster?
    > Can someone share the experience or point me to some good white papers or
    > benchmarks? Thanks.
    >
    >[/color]

    Comment

    • lawrence

      #3
      Re: PHP vs Java performance on MySQL

      "Rajesh Kapur" <rkapur@mpr.org > wrote in message news:<3f3ba86f$ 0$150$a1866201@ newsreader.visi .com>...[color=blue]
      > Does PHP work better than Java with MySQL? What are pros and cons of using
      > PHP vs Java? Which one is faster?
      > Can someone share the experience or point me to some good white papers or
      > benchmarks? Thanks.[/color]


      I wrote a content management system in PHP/MySQL to work in hosted
      environments on a variety of machines. But now I have my own server to
      work with. I'm wondering if the CMS would run faster if I rewrote it
      in Java? I wrote the CMS mostly as OO, so it would be fairly easy to
      port, I think.

      Comment

      Working...