Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Siege] 테스트 케이스 만들기 #258

Open
hochan222 opened this issue Apr 6, 2021 · 7 comments
Open

[Siege] 테스트 케이스 만들기 #258

hochan222 opened this issue Apr 6, 2021 · 7 comments
Assignees
Labels

Comments

@hochan222
Copy link
Member

hochan222 commented Apr 6, 2021

Siege는 HTTP 부하를 테스트 하고 측정할 수 있는 유틸이다.
Siege는 웹개발자가 쉽게 웹애플리케이션 성능을 측정할 수 있도록 도와 준다.
Siege는 basic authentication, cookies 및 HTTP, HTTPS 프로토콜을 지원한다.

20 concurrent users 50 times is 1000 transactions, the length of the test.

-c : 동시접속 사용자 수
-t : Simulation Time (Number+TimeFlag -> 10S(10초), 1M(1분), 1H(1시간)
  • How To Install

preparing

  • 사용법

sh siege -c 5 -t10S http://localhost:8080

@hochan222 hochan222 self-assigned this Apr 6, 2021
@hochan222 hochan222 removed their assignment Apr 6, 2021
@hochan222 hochan222 self-assigned this Apr 7, 2021
@hochan222
Copy link
Member Author

hochan222 commented Apr 7, 2021

Install siege

brew install siege

Identify siege

siege

siege -V

Test

siege http://localhost:8080 -d1 -r10 -c25
siege http://localhost:8080 -b

@hochan222
Copy link
Member Author

hochan222 commented Apr 7, 2021

{	"transactions":			         244,
	"availability":			      100.00,
	"elapsed_time":			        8.42,
	"data_transferred":		        0.71,
	"response_time":		        0.08,
	"transaction_rate":		       28.98,
	"throughput":			        0.08,
	"concurrency":			        2.28,
	"successful_transactions":	         244,
	"failed_transactions":		           0,
	"longest_transaction":		        0.16,
	"shortest_transaction":		        0.01
}
{	"transactions":			        3709,
	"availability":			      100.00,
	"elapsed_time":			      203.80,
	"data_transferred":		       10.82,
	"response_time":		        1.37,
	"transaction_rate":		       18.20,
	"throughput":			        0.05,
	"concurrency":			       24.85,
	"successful_transactions":	        3709,
	"failed_transactions":		           0,
	"longest_transaction":		        3.64,
	"shortest_transaction":		        0.01
}

@hochan222
Copy link
Member Author

{       "transactions":                       226432,
        "availability":                        99.54,
        "elapsed_time":                      1261.50,
        "data_transferred":                   660.04,
        "response_time":                        0.14,
        "transaction_rate":                   179.49,
        "throughput":                           0.52,
        "concurrency":                         24.78,
        "successful_transactions":            226432,
        "failed_transactions":                  1048,
        "longest_transaction":                  0.60,
        "shortest_transaction":                 0.00
}

@hochan222
Copy link
Member Author

image

@yechoi42
Copy link
Member

image

The default configuration file is $HOME/.siege/siege.conf If you don't have a $HOME/.siege directory and a siege.conf and cookies.txt file, siege will generate a new config directory when it runs. You can generate your config directory with the following command: siege.config

여기 config에 들어가서 connection: closeconnection: keep-alive로 바꿔줘야 합니다.

@hochan222
Copy link
Member Author

또하나 배워갑니다..! 감사합니다 ㅠㅠ 앞으로 문제에 접근할때 모든 선입견 없애버리고 처음부터 접근해야겠어요.

@hochan222
Copy link
Member Author

hochan222 commented Apr 23, 2021

image

{       "transactions":                      2636589,
        "availability":                       100.00,
        "elapsed_time":                       883.76,
        "data_transferred":                   631.13,
        "response_time":                        0.00,
        "transaction_rate":                  2983.38,
        "throughput":                           0.71,
        "concurrency":                          3.89,
        "successful_transactions":           2636589,
        "failed_transactions":                     0,
        "longest_transaction":                107.31,
        "shortest_transaction":                 0.00
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants