Load testing PHP script

by 11 replies
14
Hey everyone! I just built a new URL shortener and it's getting really good reviews so far in another thread here. The URL is NAGG - Free, Editable, Offshore URL Shortener.

I see it growing quite a bit so I'm here in the programming section to ask a few questions about caching, load testing, etc before it becomes an issue.

I've used loader.io to test my main php redirect script and I'm getting roughly the following:
10 - 25 requests per second result in no timeouts or failures.
100 requests per second result in some failed requests and time outs.

Do you use anything else for load testing? How do you actually locate slow spots in your code?

Thank you!!
#programming #load #php #script
  • Debug it, time stuff, and you can then see the flaws within the code.
    • [1] reply
    • No, this is the worst suggestion anyone can make. There are no real-world metrics here.

      If you want to see how your site does under load. Try https://www.blitz.io I'm not in any way affiliated with the site. However I have used server optimisation techniques for nginx, mysql, memcacheD, apc and cloudflare and gotten down page requests to double digits milliseconds lol.

      This site, athough it costs money is a good way to get metrics!
      • [1] reply
  • Dude, I really like your website design, very good, only thing wrong is when you hover over the buttons, the mouse arrow does not change into a hand. It will just make it easier for the viewer to identify it as a clickable button, although it may be obvious, just a suggestion.
    • [ 1 ] Thanks
  • I'd suggest to look into Web server/database backend error logs for a start, raising log level if necessary, to detect possible reason for that behaviour.

    Also, I would emulate high load on local installation (not on primary site), using, say, jmeter.
    • [2] replies
  • add to your .submit css
    cursor: pointer
  • send me a PM I'll be more then happy to help out.

Next Topics on Trending Feed

  • 14

    Hey everyone! I just built a new URL shortener and it's getting really good reviews so far in another thread here. The URL is NAGG - Free, Editable, Offshore URL Shortener. I see it growing quite a bit so I'm here in the programming section to ask a few questions about caching, load testing, etc before it becomes an issue.