Difference between revisions of "Ab"

From Wasya Wiki
Jump to: navigation, search
(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-...")
 
Line 1: Line 1:
 
Apache bench
 
Apache bench
  
Suppose we want to see how fast Yahoo 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 http://www.yahoo.com/
+
  ab -n 100 -c 10 https://piousbox.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.
 
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:38, 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/

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