SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Benchtesting a site

    How do you benchtest a test for performance and load handling that's on shared hosting? I want to check for script and mysql efficiency.
    E

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,069
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    To test the script efficience you can use ApacheBench (comes as part of the Apache web server).

    To check if the queries are optimal take a look at EXPLAIN.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    If you want to test the efficiency of your scripts locally first, I'd recommend using Xdebug, and get access to the cacheGrind files. You'll learn an awful lot before putting them on a live server.

    Benchmarking on a shared server though, you are first and foremost at the mercy of the efficiency or lack of it of the other hundreds or thousands of websites on that server, you may get wildly different results depending on the type of traffic being generated.

    Thats how I imagine anyway.

  5. #5
    SitePoint Guru
    Join Date
    Jan 2007
    Posts
    967
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks, honestly I'm trying to raise my game by looking for weaknesses in my code. I'll check out these resources.

    Thanks,
    E


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •