Skip to content

Instantly share code, notes, and snippets.

@gaker
Created August 31, 2011 17:55
Show Gist options
  • Save gaker/1184197 to your computer and use it in GitHub Desktop.
Save gaker/1184197 to your computer and use it in GitHub Desktop.
rewrite benchmarks - apache/nginx

##Apache:

No Rewrites:

$ siege -c 3 -b -t 10s http://localhost/test/foo.css

Lifting the server siege...      done.
Transactions:		       16177 hits
Availability:		      100.00 %
Elapsed time:		        9.56 secs
Data transferred:	      202.29 MB
Response time:		        0.00 secs
Transaction rate:	     1692.15 trans/sec
Throughput:		       21.16 MB/sec
Concurrency:		        2.57
Successful transactions:       16177
Failed transactions:	           0
Longest transaction:	        0.01
Shortest transaction:	        0.00

Rewrites:

$ siege -c 3 -b -t 10s http://localhost/test/foo.v12345.css

Lifting the server siege...      done.
Transactions:		       14488 hits
Availability:		      100.00 %
Elapsed time:		        9.04 secs
Data transferred:	      181.17 MB
Response time:		        0.00 secs
Transaction rate:	     1602.65 trans/sec
Throughput:		       20.04 MB/sec
Concurrency:		        2.63
Successful transactions:       14488
Failed transactions:	           0
Longest transaction:	        0.01
Shortest transaction:	        0.00

Nginx

No Rewrites:

$ siege -c 3 -b -t 10s http://localhost/test/foo.css

Lifting the server siege...      done.
Transactions:		       16198 hits
Availability:		      100.00 %
Elapsed time:		        9.85 secs
Data transferred:	      202.55 MB
Response time:		        0.00 secs
Transaction rate:	     1644.47 trans/sec
Throughput:		       20.56 MB/sec
Concurrency:		        2.33
Successful transactions:       16198
Failed transactions:	           0
Longest transaction:	        0.01
Shortest transaction:	        0.00

With Rewrites:

$ siege -c 3 -b -t 10s http://localhost/test/foo.v12345.css

Lifting the server siege...      done.
Transactions:		       16195 hits
Availability:		      100.00 %
Elapsed time:		        9.17 secs
Data transferred:	      202.51 MB
Response time:		        0.00 secs
Transaction rate:	     1766.09 trans/sec
Throughput:		       22.08 MB/sec
Concurrency:		        2.32
Successful transactions:       16195
Failed transactions:	           0
Longest transaction:	        0.02
Shortest transaction:	        0.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment