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

how can send bulk request #1139

Closed
hemedani opened this issue Dec 29, 2022 · 5 comments
Closed

how can send bulk request #1139

hemedani opened this issue Dec 29, 2022 · 5 comments
Labels
enhancement New feature or request topic: parallel

Comments

@hemedani
Copy link

Problem to solve

I want to send a bulk HTTP request for example 1000 req and get a benchmark from it.

I want to get results like the average time for each request and hardware resource usage.

@hemedani hemedani added the enhancement New feature or request label Dec 29, 2022
@fabricereix
Copy link
Collaborator

Hi @hemedani,
we don't have an option yet to run the same request several times.
For the time-being, you could generate the Hurl file with the 1000 requests.

$ for i in $(seq 0 1000);do echo GET http://google.com >> test.hurl; done

And run the file with the JSON output which contains the duration for each request.

$ cat test.hurl | hurl --json >results.json
$ cat results.json  | jq '.entries|.[]|.time'
75
28
27
...

@fabricereix
Copy link
Collaborator

But that's something we'd like to add in the future, especially with the possibility to run the requests concurrently.
What kind of options would you like to see?

@hemedani
Copy link
Author

tanks @fabricereix ,
one good example is wrk.
some good options are time duration, active connection, and thread use.
and it's very nice if we have a hardware resource usage report also

@jcamiel
Copy link
Collaborator

jcamiel commented Nov 6, 2023

Initialisation of an architecture document here => /docs/spec/runner/parallel.md

@jcamiel
Copy link
Collaborator

jcamiel commented Jun 28, 2024

@hemedani with Hurl 5.0.0, we've added a --paralleloption and a --repeat option. Parallel run is activated by default with --test so if you have one file foo.hurl, you can run now:

$ hurl --test --repeat 1000 foo.hurl

That will runs 1000 foo.hurl in parallel (numbers of threads can be set with --jobsoption)

@jcamiel jcamiel closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic: parallel
Projects
None yet
Development

No branches or pull requests

3 participants