Skip to content

Instantly share code, notes, and snippets.

@Turini
Created November 6, 2013 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Turini/7335438 to your computer and use it in GitHub Desktop.
Save Turini/7335438 to your computer and use it in GitHub Desktop.
ÌncludeParameters (Interceptor x Evento)

Antes, usando Interceptor

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache-Coyote/1.1
Server Hostname:        localhost
Server Port:            8080

Document Path:          /vraptor-musicjungle/home/oi?string=ronaldo
Document Length:        7 bytes

Concurrency Level:      100
Time taken for tests:   3.641 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      262000 bytes
HTML transferred:       7000 bytes
Requests per second:    274.68 [#/sec] (mean)
Time per request:       364.062 [ms] (mean)
Time per request:       3.641 [ms] (mean, across all concurrent requests)
Transfer rate:          70.28 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   3.1      0      13
Processing:     3  354 237.6    325    1595
Waiting:        3  336 235.9    280    1595
Total:          3  355 237.2    328    1595

Percentage of the requests served within a certain time (ms)
  50%    328
  66%    438
  75%    494
  80%    566
  90%    662
  95%    787
  98%    873
  99%    982
 100%   1595 (longest request)

Depois, usando Evento

Rodrigo ~ $ ab -c 100 -n 1000 http://localhost:8080/vraptor-musicjungle/home/oi?string=ronaldo
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache-Coyote/1.1
Server Hostname:        localhost
Server Port:            8080

Document Path:          /vraptor-musicjungle/home/oi?string=ronaldo
Document Length:        20 bytes

Concurrency Level:      100
Time taken for tests:   3.167 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      276000 bytes
HTML transferred:       20000 bytes
Requests per second:    311.01 [#/sec] (mean)
Time per request:       336.684 [ms] (mean)
Time per request:       3.167 [ms] (mean, across all concurrent requests)
Transfer rate:          80.05 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   3.2      0      15
Processing:     3  331 228.9    263    1543
Waiting:        2  314 225.4    256    1543
Total:          3  332 228.3    263    1543

Percentage of the requests served within a certain time (ms)
  50%    263
  66%    427
  75%    457
  80%    478
  90%    643
  95%    706
  98%    856
  99%   1054
 100%   1543 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment