Laravel
# composer glob al require "lalavel/installer" # PATH : $HOME/.config/composer/vendor/bin composer require "laravel/installer" # laravel new blog vendor/laravel/installer/laravel new blog composer create-project --prefer-dist laravel/laravel blog vi blog/routes/web.php
<?php Route::get('/', function () { echo "Hello World"; });
php blog/artisan serve # ohter sell, -k(kepp Alive) 옵션을 사용하면 더 오래 걸리는 현상이 있음. ab -n 10000 -c 10 http://127.0.0.1:8000/ ... Concurrency Level: 10 Time taken for tests: 85.444 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 10470752 bytes HTML transferred: 120000 bytes Requests per second: 117.04 [#/sec] (mean) Time per request: 85.444 [ms] (mean) Time per request: 8.544 [ms] (mean, across all concurrent requests) Transfer rate: 119.67 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 36 85 37.0 71 434 Waiting: 35 85 37.0 70 433 Total: 37 85 37.0 71 434 Percentage of the requests served within a certain time (ms) 50% 71 66% 72 75% 73 80% 77 90% 140 95% 175 98% 203 99% 213 100% 434 (longest request)
반응형
'lang > php' 카테고리의 다른 글
PHP Guzzle Scraper (0) | 2018.06.30 |
---|---|
Simple PHP Web Scraper Guotte (0) | 2018.06.29 |
PHP reactPHP helloWorld (0) | 2018.06.14 |
PHP workman Container helloWorld (0) | 2018.06.12 |
php codeignier3 framework helloWorld (0) | 2018.06.11 |