Difference between revisions of "Ab"
From Wasya Wiki
(Created page with "Apache bench Suppose we want to see how fast Yahoo can handle 100 requests, with a maximum of 10 requests running concurrently: ab -n 100 -c 10 http://www.yahoo.com/ Copy-...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Apache bench | Apache bench | ||
− | Suppose we want to see how fast | + | 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 | + | ab -n 100 -c 10 https://piousbox.com/ |
+ | ab -n 1000 -c 100 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. | 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 |
Latest revision as of 16:40, 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/ 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