Difference between revisions of "Ab"
From Wasya Wiki
Line 2: | Line 2: | ||
Suppose we want to see how fast a website can handle 100 requests, with a maximum of 10 requests running concurrently: | Suppose we want to see how fast a website can handle 100 requests, with a maximum of 10 requests running concurrently: | ||
− | + | ||
− | ab -n 100 -c 10 https://piousbox.com/ | + | ab -n 100 -c 10 https://piousbox.com/ |
− | ab -n | + | ab -n 1000 -c 100 https://piousbox.com/issues/2024q4-issue |
Copy-paste the session cookie from chrome debugger into curl. This way you won't have to write any code scaffolding to permit a session. | Copy-paste the session cookie from chrome debugger into curl. This way you won't have to write any code scaffolding to permit a session. | ||
ab -c 10 -n 100 -C "_session_id=<id>; _smt_rails_session=<session>" http://localhost:3000/job_numbers | ab -c 10 -n 100 -C "_session_id=<id>; _smt_rails_session=<session>" http://localhost:3000/job_numbers |
Revision as of 16:39, 11 June 2025
Apache bench
Suppose we want to see how fast a website can handle 100 requests, with a maximum of 10 requests running concurrently:
ab -n 100 -c 10 https://piousbox.com/ ab -n 1000 -c 100 https://piousbox.com/issues/2024q4-issue
Copy-paste the session cookie from chrome debugger into curl. This way you won't have to write any code scaffolding to permit a session.
ab -c 10 -n 100 -C "_session_id=<id>; _smt_rails_session=<session>" http://localhost:3000/job_numbers