Reputation: 8689
What's the quickest way to create concurrent curl requests? I have a app which accepts POST requests and would like to do some load testing
I would like to run the following cURL command concurrently and not sequentially
curl -d "param1=value1¶m2=value2" http://example.com/test
Thanks
Upvotes: 3
Views: 4771
Reputation: 1
I do this kind of thing (generating concurrent POST requests) with a few small perl scripts I wrote:
http://patrick.net/sprocket/rwt.html
I'm planning to port it to python, but the perl version works pretty well right now.
Upvotes: 0
Reputation: 53523
How about ApacheBench
? You've probably already got it installed.
Upvotes: 6
Reputation: 2788
I am not confident but spawning multiple processes in the bachground?
nohup curl -parameters &
For load testing perhaps you need something like multi-threading, you might also want to research for already available tools.
Upvotes: 1