wrk -t 12 -c 40 -d 30s http://localhost:8080/index.html
-t : 쓰레드 갯수
-c : 동접 갯수
-d : 테스트 시간
-s : Lua 스크립트를 실행할 수 있다.
- 12개의 스레드로 40개의 연결을 유지하면서 30초 동안 localhost:8080/index.html 문서를 요청한다.
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ | |
| --- |
| buildscript { | |
| ext { | |
| springBootVersion = '2.1.5.RELEASE' | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
| } |
wrk -t 12 -c 40 -d 30s http://localhost:8080/index.html
-t : 쓰레드 갯수
-c : 동접 갯수
-d : 테스트 시간
-s : Lua 스크립트를 실행할 수 있다.
| # Set variables in .zshrc file | |
| # don't forget to set path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
| export CLICOLOR=1 | |
| export LSCOLORS=exfxcxdxbxegedabagacad; # It is the default value on OSX, so this line can be omitted |
| #.bash_profile | |
| if [ -f ~/.bashrc ]; then | |
| . ~/.bashrc | |
| fi | |
| export TERM="xterm-256color" | |
| export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
| export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home |
| "=== INDENT === | |
| "set autoindent | |
| "set cindent | |
| "set smartindent | |
| set tabstop=4 | |
| set expandtab | |
| set shiftwidth=4 | |
| set ts=4 | |
| set ai | |
| <dependency> | |
| <groupId>org.springframework.cloud</groupId> | |
| <artifactId>spring-cloud-starter-openfeign</artifactId> | |
| <version>2.0.1.RELEASE</version> | |
| <exclusions> | |
| <exclusion> <!-- declare the exclusion here --> | |
| <groupId>org.springframework.cloud</groupId> | |
| <artifactId>spring-cloud-netflix-ribbon</artifactId> | |
| </exclusion> | |
| <exclusion> <!-- declare the exclusion here --> |
| <dependency> | |
| <groupId>org.springframework.cloud</groupId> | |
| <artifactId>spring-cloud-starter-openfeign</artifactId> | |
| <version>2.0.1.RELEASE</version> | |
| <exclusions> | |
| <exclusion> <!-- declare the exclusion here --> | |
| <groupId>org.springframework.cloud</groupId> | |
| <artifactId>spring-cloud-netflix-ribbon</artifactId> | |
| </exclusion> | |
| <exclusion> <!-- declare the exclusion here --> |
| [client] | |
| default-character-set = utf8mb4 | |
| [mysql] | |
| default-character-set = utf8mb4 | |
| [mysqld] | |
| character-set-server=utf8mb4 | |
| collation-server=utf8mb4_general_ci | |
| log_timestamps=SYSTEM |