Created
September 11, 2012 08:54
-
-
Save saturngod/3697019 to your computer and use it in GitHub Desktop.
call routing style home
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: Apache/2.2.22 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /ava/home/ | |
Document Length: 193 bytes | |
Concurrency Level: 1 | |
Time taken for tests: 6.884 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 436000 bytes | |
HTML transferred: 193000 bytes | |
Requests per second: 145.27 [#/sec] (mean) | |
Time per request: 6.884 [ms] (mean) | |
Time per request: 6.884 [ms] (mean, across all concurrent requests) | |
Transfer rate: 61.86 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 5 7 1.3 7 27 | |
Processing: 0 0 0.0 0 0 | |
Waiting: 0 0 0.0 0 0 | |
Total: 5 7 1.3 7 27 | |
Percentage of the requests served within a certain time (ms) | |
50% 7 | |
66% 7 | |
75% 7 | |
80% 7 | |
90% 8 | |
95% 8 | |
98% 8 | |
99% 9 | |
100% 27 (longest request) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class homeController extends Ava_Controller { | |
/** | |
* Place to start writing the code | |
*/ | |
function index() | |
{ | |
$get['/']= 'loop'; | |
$get['/mydata']= 'loop'; | |
$this->get_route($get); | |
$this->load->model('homerouting'); | |
$this->run($this->homerouting); | |
} | |
function loop() | |
{ | |
for($i=0 ; $i<=100;$i++) | |
{ | |
echo $i; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class homeroutingModel extends Ava_Model { | |
function loop() | |
{ | |
for($i=0 ; $i<=100;$i++) | |
{ | |
echo $i; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: Apache/2.2.22 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /ava/ | |
Document Length: 193 bytes | |
Concurrency Level: 1 | |
Time taken for tests: 6.852 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 436000 bytes | |
HTML transferred: 193000 bytes | |
Requests per second: 145.94 [#/sec] (mean) | |
Time per request: 6.852 [ms] (mean) | |
Time per request: 6.852 [ms] (mean, across all concurrent requests) | |
Transfer rate: 62.14 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 5 7 2.4 7 78 | |
Processing: 0 0 0.0 0 0 | |
Waiting: 0 0 0.0 0 0 | |
Total: 5 7 2.4 7 78 | |
Percentage of the requests served within a certain time (ms) | |
50% 7 | |
66% 7 | |
75% 7 | |
80% 7 | |
90% 7 | |
95% 8 | |
98% 8 | |
99% 8 | |
100% 78 (longest request) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab -n 1000 http://localhost/ava/ > test1.txt | |
ab -n 1000 http://localhost/ava/home/mydata > test2.txt | |
ab -n 1000 http://localhost/ava/home/loop > test3.txt | |
ab -n 1000 http://localhost/ava/ > test4.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: Apache/2.2.22 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /ava/home/loop | |
Document Length: 193 bytes | |
Concurrency Level: 1 | |
Time taken for tests: 6.939 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 436000 bytes | |
HTML transferred: 193000 bytes | |
Requests per second: 144.12 [#/sec] (mean) | |
Time per request: 6.939 [ms] (mean) | |
Time per request: 6.939 [ms] (mean, across all concurrent requests) | |
Transfer rate: 61.36 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 4 7 3.3 7 70 | |
Processing: 0 0 2.7 0 82 | |
Waiting: 0 0 0.8 0 26 | |
Total: 4 7 5.2 7 129 | |
Percentage of the requests served within a certain time (ms) | |
50% 7 | |
66% 7 | |
75% 7 | |
80% 7 | |
90% 7 | |
95% 8 | |
98% 9 | |
99% 12 | |
100% 129 (longest request) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Server Software: Apache/2.2.22 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /ava/home/mydata | |
Document Length: 193 bytes | |
Concurrency Level: 1 | |
Time taken for tests: 5.079 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 436000 bytes | |
HTML transferred: 193000 bytes | |
Requests per second: 196.89 [#/sec] (mean) | |
Time per request: 5.079 [ms] (mean) | |
Time per request: 5.079 [ms] (mean, across all concurrent requests) | |
Transfer rate: 83.83 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 4.4 0 125 | |
Processing: 4 5 0.6 5 19 | |
Waiting: 4 5 0.6 5 19 | |
Total: 4 5 4.5 5 132 | |
Percentage of the requests served within a certain time (ms) | |
50% 5 | |
66% 5 | |
75% 5 | |
80% 5 | |
90% 5 | |
95% 6 | |
98% 6 | |
99% 7 | |
100% 132 (longest request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment