Last active
June 2, 2021 13:32
-
-
Save eusonlito/961e6e0a8dde3736fca5465be6fc2c64 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
set -e | |
URL="http://localhost/laravel/public/test" | |
rm -rf vendor storage/logs/*.log | |
composer install --no-scripts --no-dev && composer install --no-dev --optimize-autoloader --classmap-authoritative | |
php artisan optimize | |
ab -t 10 -c 10 $URL/response > storage/logs/TestResponse-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1 > storage/logs/TestQuery-1-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100 > storage/logs/TestQuery-100-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1000 > storage/logs/TestQuery-1000-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100000 > storage/logs/TestQuery-100000-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1/iterate > storage/logs/TestQuery-1-Iterate-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100/iterate > storage/logs/TestQuery-100-Iterate-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1000/iterate > storage/logs/TestQuery-1000-Iterate-before.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100000/iterate > storage/logs/TestQuery-100000-Iterate-before.log 2>&1 | |
rm -rf vendor | |
composer install --no-scripts --no-dev && composer install --no-dev --optimize-autoloader --classmap-authoritative | |
php artisan optimize | |
php ./vendor/bin/php-cs-fixer fix vendor/laravel --allow-risky=yes --using-cache=no --rules=native_function_invocation,native_constant_invocation | |
ab -t 10 -c 10 $URL/response > storage/logs/TestResponse-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1 > storage/logs/TestQuery-1-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100 > storage/logs/TestQuery-100-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1000 > storage/logs/TestQuery-1000-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100000 > storage/logs/TestQuery-100000-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1/iterate > storage/logs/TestQuery-1-Iterate-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100/iterate > storage/logs/TestQuery-100-Iterate-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/1000/iterate > storage/logs/TestQuery-1000-Iterate-after.log 2>&1 | |
ab -t 10 -c 10 $URL/query/100000/iterate > storage/logs/TestQuery-100000-Iterate-after.log 2>&1 |
This file contains 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 declare(strict_types=1); | |
namespace App\Domains\Test\Controller; | |
use Illuminate\Support\Facades\Route; | |
Route::get('/test/response', TestResponse::class)->name('test.response'); | |
Route::get('/test/query/{limit}', TestQuery::class)->name('test.query'); | |
Route::get('/test/query/{limit}/iterate', TestQueryIterate::class)->name('test.query.iterate'); |
This file contains 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 declare(strict_types=1); | |
namespace App\Domains\Exchange\Model; | |
use App\Domains\Exchange\Model\Builder\Exchange as Builder; | |
use App\Domains\Shared\Model\ModelAbstract; | |
class Exchange extends ModelAbstract | |
{ | |
/** | |
* @var string | |
*/ | |
protected $table = 'exchange'; | |
/** | |
* @var string | |
*/ | |
public static string $foreign = 'exchange_id'; | |
/** | |
* @param \Illuminate\Database\Query\Builder $q | |
* | |
* @return \Illuminate\Database\Eloquent\Builder|static | |
*/ | |
public function newEloquentBuilder($q) | |
{ | |
return new Builder($q); | |
} | |
/** | |
* @return string | |
*/ | |
public function getExchangeCodeAttribute(): string | |
{ | |
return $this->id.'-'.$this->exchange; | |
} | |
/** | |
* @param string $value | |
* | |
* @return void | |
*/ | |
public function setExchangeCodeAttribute(string $value): void | |
{ | |
$this->attributes['exchange_code'] = $value; | |
} | |
} |
This file contains 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 declare(strict_types=1); | |
namespace App\Domains\Test\Controller; | |
use Illuminate\Http\Response; | |
use App\Domains\Exchange\Model\Exchange as ExchangeModel; | |
class TestResponse extends ControllerAbstract | |
{ | |
/** | |
* @return \Illuminate\Http\Response | |
*/ | |
public function __invoke(): Response | |
{ | |
return response(''); | |
} | |
} |
This file contains 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 declare(strict_types=1); | |
namespace App\Domains\Test\Controller; | |
use App\Domains\Exchange\Model\Exchange as ExchangeModel; | |
class TestQuery extends ControllerAbstract | |
{ | |
/** | |
* @param int $limit | |
* | |
* @return void | |
*/ | |
public function __invoke(int $limit): void | |
{ | |
ExchangeModel::limit($limit)->get(); | |
} | |
} |
This file contains 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 declare(strict_types=1); | |
namespace App\Domains\Test\Controller; | |
use App\Domains\Exchange\Model\Exchange as ExchangeModel; | |
class TestQueryIterate extends ControllerAbstract | |
{ | |
/** | |
* @param int $limit | |
* | |
* @return void | |
*/ | |
public function __invoke(int $limit): void | |
{ | |
foreach (ExchangeModel::limit($limit)->get() as $row) { | |
$row->exchange_code = $row->exchange_code; | |
} | |
} | |
} |
This file contains 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 8.0.5 (cli) (built: May 3 2021 11:31:15) ( NTS ) | |
Copyright (c) The PHP Group | |
Zend Engine v4.0.5, Copyright (c) Zend Technologies | |
with Zend OPcache v8.0.5, Copyright (c), by Zend Technologies | |
---------------------------- | |
---------------------------- | |
before - http://localhost/crypto/public/test/response | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Completed 10000 requests | |
Finished 10712 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/response | |
Document Length: 17489 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.001 seconds | |
Complete requests: 10712 | |
Failed requests: 0 | |
Total transferred: 208509080 bytes | |
HTML transferred: 187342168 bytes | |
Requests per second: 1071.13 [#/sec] (mean) | |
Time per request: 9.336 [ms] (mean) | |
Time per request: 0.934 [ms] (mean, across all concurrent requests) | |
Transfer rate: 20360.84 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 4 9 3.5 9 145 | |
Waiting: 4 9 3.4 8 144 | |
Total: 4 9 3.5 9 145 | |
Percentage of the requests served within a certain time (ms) | |
50% 9 | |
66% 10 | |
75% 11 | |
80% 11 | |
90% 13 | |
95% 15 | |
98% 18 | |
99% 20 | |
100% 145 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/response | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Completed 10000 requests | |
Finished 10539 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/response | |
Document Length: 17489 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.001 seconds | |
Complete requests: 10539 | |
Failed requests: 0 | |
Total transferred: 205141635 bytes | |
HTML transferred: 184316571 bytes | |
Requests per second: 1053.84 [#/sec] (mean) | |
Time per request: 9.489 [ms] (mean) | |
Time per request: 0.949 [ms] (mean, across all concurrent requests) | |
Transfer rate: 20032.22 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 4 9 3.5 9 106 | |
Waiting: 4 9 3.4 8 102 | |
Total: 4 9 3.5 9 106 | |
Percentage of the requests served within a certain time (ms) | |
50% 9 | |
66% 10 | |
75% 11 | |
80% 12 | |
90% 13 | |
95% 15 | |
98% 18 | |
99% 21 | |
100% 106 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/1 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 9566 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.003 seconds | |
Complete requests: 9566 | |
Failed requests: 0 | |
Total transferred: 18864152 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 956.36 [#/sec] (mean) | |
Time per request: 10.456 [ms] (mean) | |
Time per request: 1.046 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1841.74 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 10 3.5 10 39 | |
Waiting: 5 10 3.5 10 39 | |
Total: 5 10 3.5 10 39 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 11 | |
75% 12 | |
80% 13 | |
90% 15 | |
95% 17 | |
98% 19 | |
99% 21 | |
100% 39 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/1 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 9248 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.003 seconds | |
Complete requests: 9248 | |
Failed requests: 0 | |
Total transferred: 18237056 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 924.54 [#/sec] (mean) | |
Time per request: 10.816 [ms] (mean) | |
Time per request: 1.082 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1780.46 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 5 11 3.5 10 29 | |
Waiting: 5 11 3.5 10 29 | |
Total: 5 11 3.5 10 29 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 17 | |
98% 20 | |
99% 21 | |
100% 29 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/100 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 9056 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.002 seconds | |
Complete requests: 9056 | |
Failed requests: 0 | |
Total transferred: 17858432 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 905.46 [#/sec] (mean) | |
Time per request: 11.044 [ms] (mean) | |
Time per request: 1.104 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1743.71 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 11 3.7 10 33 | |
Waiting: 5 11 3.7 10 33 | |
Total: 5 11 3.7 10 33 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 21 | |
99% 22 | |
100% 33 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/100 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 8951 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.000 seconds | |
Complete requests: 8951 | |
Failed requests: 0 | |
Total transferred: 17651372 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 895.08 [#/sec] (mean) | |
Time per request: 11.172 [ms] (mean) | |
Time per request: 1.117 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1723.74 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 11 3.7 10 35 | |
Waiting: 5 11 3.7 10 34 | |
Total: 5 11 3.7 10 35 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 21 | |
99% 22 | |
100% 35 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/1000 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 6748 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1000 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.002 seconds | |
Complete requests: 6748 | |
Failed requests: 0 | |
Total transferred: 13307056 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 674.66 [#/sec] (mean) | |
Time per request: 14.822 [ms] (mean) | |
Time per request: 1.482 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1299.25 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 7 15 4.8 14 41 | |
Waiting: 7 15 4.7 14 41 | |
Total: 7 15 4.8 14 42 | |
Percentage of the requests served within a certain time (ms) | |
50% 14 | |
66% 16 | |
75% 17 | |
80% 19 | |
90% 21 | |
95% 24 | |
98% 27 | |
99% 29 | |
100% 42 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/1000 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 6769 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1000 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.000 seconds | |
Complete requests: 6769 | |
Failed requests: 0 | |
Total transferred: 13348468 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 676.89 [#/sec] (mean) | |
Time per request: 14.773 [ms] (mean) | |
Time per request: 1.477 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1303.55 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 7 15 4.9 14 40 | |
Waiting: 7 15 4.8 14 40 | |
Total: 7 15 4.8 14 40 | |
Percentage of the requests served within a certain time (ms) | |
50% 14 | |
66% 16 | |
75% 17 | |
80% 19 | |
90% 21 | |
95% 24 | |
98% 27 | |
99% 29 | |
100% 40 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/100000 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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) | |
Finished 132 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100000 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.007 seconds | |
Complete requests: 132 | |
Failed requests: 0 | |
Total transferred: 260304 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 13.19 [#/sec] (mean) | |
Time per request: 758.125 [ms] (mean) | |
Time per request: 75.812 [ms] (mean, across all concurrent requests) | |
Transfer rate: 25.40 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 351 714 209.2 686 1352 | |
Waiting: 351 713 209.1 685 1352 | |
Total: 351 714 209.2 686 1352 | |
Percentage of the requests served within a certain time (ms) | |
50% 686 | |
66% 756 | |
75% 829 | |
80% 842 | |
90% 925 | |
95% 1258 | |
98% 1326 | |
99% 1336 | |
100% 1352 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/100000 | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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) | |
Finished 154 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100000 | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.097 seconds | |
Complete requests: 154 | |
Failed requests: 0 | |
Total transferred: 303688 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 15.25 [#/sec] (mean) | |
Time per request: 655.651 [ms] (mean) | |
Time per request: 65.565 [ms] (mean, across all concurrent requests) | |
Transfer rate: 29.37 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 300 613 185.3 597 1285 | |
Waiting: 300 612 184.9 597 1285 | |
Total: 300 613 185.3 597 1286 | |
Percentage of the requests served within a certain time (ms) | |
50% 597 | |
66% 684 | |
75% 722 | |
80% 749 | |
90% 841 | |
95% 949 | |
98% 1039 | |
99% 1194 | |
100% 1286 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/1/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 8928 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.001 seconds | |
Complete requests: 8928 | |
Failed requests: 0 | |
Total transferred: 17606016 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 892.71 [#/sec] (mean) | |
Time per request: 11.202 [ms] (mean) | |
Time per request: 1.120 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1719.16 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 11 5.1 10 108 | |
Waiting: 5 11 5.1 10 108 | |
Total: 5 11 5.1 10 108 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 22 | |
99% 27 | |
100% 108 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/1/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 8990 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.003 seconds | |
Complete requests: 8990 | |
Failed requests: 0 | |
Total transferred: 17728280 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 898.69 [#/sec] (mean) | |
Time per request: 11.127 [ms] (mean) | |
Time per request: 1.113 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1730.68 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 5 11 4.2 10 59 | |
Waiting: 5 11 4.1 10 59 | |
Total: 5 11 4.2 10 59 | |
Percentage of the requests served within a certain time (ms) | |
50% 10 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 21 | |
99% 23 | |
100% 59 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/100/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 8811 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.000 seconds | |
Complete requests: 8811 | |
Failed requests: 0 | |
Total transferred: 17551512 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 881.06 [#/sec] (mean) | |
Time per request: 11.350 [ms] (mean) | |
Time per request: 1.135 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1713.93 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 11 3.7 11 35 | |
Waiting: 5 11 3.7 11 35 | |
Total: 5 11 3.7 11 35 | |
Percentage of the requests served within a certain time (ms) | |
50% 11 | |
66% 12 | |
75% 13 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 21 | |
99% 22 | |
100% 35 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/100/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 8732 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.000 seconds | |
Complete requests: 8732 | |
Failed requests: 0 | |
Total transferred: 17394144 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 873.18 [#/sec] (mean) | |
Time per request: 11.452 [ms] (mean) | |
Time per request: 1.145 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1698.62 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 5 11 3.7 11 31 | |
Waiting: 5 11 3.6 11 31 | |
Total: 5 11 3.7 11 31 | |
Percentage of the requests served within a certain time (ms) | |
50% 11 | |
66% 12 | |
75% 14 | |
80% 14 | |
90% 16 | |
95% 18 | |
98% 21 | |
99% 22 | |
100% 31 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/1000/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 5863 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1000/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.001 seconds | |
Complete requests: 5863 | |
Failed requests: 0 | |
Total transferred: 11679096 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 586.22 [#/sec] (mean) | |
Time per request: 17.058 [ms] (mean) | |
Time per request: 1.706 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1140.39 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 8 17 5.8 16 50 | |
Waiting: 8 17 5.7 16 50 | |
Total: 8 17 5.8 16 50 | |
Percentage of the requests served within a certain time (ms) | |
50% 16 | |
66% 18 | |
75% 20 | |
80% 22 | |
90% 25 | |
95% 28 | |
98% 32 | |
99% 35 | |
100% 50 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/1000/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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 5000 requests | |
Finished 5920 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/1000/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.000 seconds | |
Complete requests: 5920 | |
Failed requests: 0 | |
Total transferred: 11792640 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 591.98 [#/sec] (mean) | |
Time per request: 16.893 [ms] (mean) | |
Time per request: 1.689 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1151.58 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 1 | |
Processing: 8 17 5.7 16 50 | |
Waiting: 8 17 5.6 16 50 | |
Total: 8 17 5.7 16 50 | |
Percentage of the requests served within a certain time (ms) | |
50% 16 | |
66% 18 | |
75% 20 | |
80% 21 | |
90% 25 | |
95% 28 | |
98% 31 | |
99% 33 | |
100% 50 (longest request) | |
---------------------------- | |
before - http://localhost/crypto/public/test/query/100000/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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) | |
Finished 106 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100000/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.020 seconds | |
Complete requests: 106 | |
Failed requests: 0 | |
Total transferred: 211152 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 10.58 [#/sec] (mean) | |
Time per request: 945.312 [ms] (mean) | |
Time per request: 94.531 [ms] (mean, across all concurrent requests) | |
Transfer rate: 20.58 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 401 879 166.3 890 1363 | |
Waiting: 401 878 166.4 889 1363 | |
Total: 401 879 166.3 890 1363 | |
Percentage of the requests served within a certain time (ms) | |
50% 890 | |
66% 942 | |
75% 999 | |
80% 1019 | |
90% 1080 | |
95% 1116 | |
98% 1152 | |
99% 1269 | |
100% 1363 (longest request) | |
---------------------------- | |
after - http://localhost/crypto/public/test/query/100000/iterate | |
---------------------------- | |
This is ApacheBench, Version 2.3 <$Revision: 1879490 $> | |
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) | |
Finished 123 requests | |
Server Software: Apache/2.4.46 | |
Server Hostname: localhost | |
Server Port: 80 | |
Document Path: /crypto/public/test/query/100000/iterate | |
Document Length: 0 bytes | |
Concurrency Level: 10 | |
Time taken for tests: 10.062 seconds | |
Complete requests: 123 | |
Failed requests: 0 | |
Total transferred: 245016 bytes | |
HTML transferred: 0 bytes | |
Requests per second: 12.22 [#/sec] (mean) | |
Time per request: 818.060 [ms] (mean) | |
Time per request: 81.806 [ms] (mean, across all concurrent requests) | |
Transfer rate: 23.78 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.0 0 0 | |
Processing: 354 757 173.7 772 1088 | |
Waiting: 354 756 173.6 772 1088 | |
Total: 354 757 173.7 772 1088 | |
Percentage of the requests served within a certain time (ms) | |
50% 772 | |
66% 840 | |
75% 887 | |
80% 899 | |
90% 977 | |
95% 1038 | |
98% 1072 | |
99% 1072 | |
100% 1088 (longest request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment