Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i input txt file with different URLs in it ? #30

Closed
ghost opened this issue Mar 16, 2018 · 4 comments
Closed

can i input txt file with different URLs in it ? #30

ghost opened this issue Mar 16, 2018 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 16, 2018

becuase there is caching enabled on my sites and i want to test different urls.,
as if url gets requested twice it gets cached.

so it would be great if we could provide txt file containing list of urls.

thanks

@codesenberg
Copy link
Owner

codesenberg commented Mar 16, 2018

Currently, there is no way to specify multiple URLs directly, but you could do something in the spirit of UNIX philosophy, i.e., given urls.txt looks something like:

http://mysite.com/url1
http://mysite.com/url2?with=param
http://mysite.com/url3

you can then run:

cat urls.txt | xargs -P 8 -i bombardier -q "{}"

or, if you need outputs (script.sh):

#!/usr/bin/env bash

while read -r url
do
  (bombardier "$url" > "$url.txt") &
done < "${1:-/dev/stdin}"

and then, cat urls.txt | script.sh.

But maybe, you could try another approach, like, disabling caching on a test server, if it's a feasible option.

@ghost
Copy link
Author

ghost commented Mar 16, 2018

Thanks, looking in to it., right now i am on windows., so will work with batch scripting.

@ericsouza
Copy link

ericsouza commented Sep 13, 2023

Hey @codesenberg ! Do you thin there is any change this feature get added?

I'm using bombardier to benchmark a system that pops all elements from a redis list, so after the first call for a single user id all subsequently request for the same user id will return nothing.

If there was a way to tell bombardier to use a sequence, for example go from 1...1000 in a path like: localhost:8080/user/{index}/messages would be amazing. Also if this could be use in headers too would be even better for my application, as I'm using jwt token to identify my users.

drill, a benchmark tool written in rust has something similar to this.

By the way, bombardier its an amazing tool!

@codesenberg
Copy link
Owner

Thanks for providing an example of how this functionality might be implemented, @ericsouza.
This or similar feature has been requested a couple of times. We use #84 for discussions these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants