Ab

From Wasya Wiki
Revision as of 16:56, 12 April 2024 by Piousbox (Talk | contribs) (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-...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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-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