View Full Version : Testing: Want to "spawn" multiple
mikecrowe
March 1st, 2008, 11:55 AM
Hi folks,
I have an interesting question. I want to load test a web application (non HTTP). I've written some php curl-based test scripts.
How can I spawn many copies of this script to hit my server 50 or 100 times simultaneously? Any framework which might help this?
TIA
Mike
bukwirm
March 1st, 2008, 12:41 PM
Here's (http://www.softwareqatest.com/qatweb1.html#LOAD) a list of webserver testing programs - I don't know if any of them will work for you, though.
lloyd_b
March 1st, 2008, 12:45 PM
Hi folks,
I have an interesting question. I want to load test a web application (non HTTP). I've written some php curl-based test scripts.
How can I spawn many copies of this script to hit my server 50 or 100 times simultaneously? Any framework which might help this?
TIA
Mike
A simple shell script:
#!/bin/bash
for NUM in {1..100}; do
myscript &
done
will launch 100 copies of that script, each running in background. Note that they will *not* be truly simultaneous (there's going to be a very small delay between them), but depending on what your test scripts do it may be close enough.
Lloyd B.
mikecrowe
March 1st, 2008, 01:00 PM
Lloyd,
DOH, I should have thought of that. I don't know why I didn't think of that. Thanks.
Mike
slavik
March 1st, 2008, 02:48 PM
does php have fork()?
mikecrowe
March 1st, 2008, 05:08 PM
No, it's really not thread aware (though curl is). That's why I needed to run separate processes.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.