-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: random name util 함수 소소한 버그 수정 - trim - 타입 명시 * feat: message 이벤트에서 name 한 번 더 검사 부하 테스트 결과, 빈 이름이 올 때가 많았습니다. * chore: 부하 테스트 툴 artillery 설치 * feat: socket 부하 테스트 yml 추가 * fix: 한 번 더 검증하는 로직 삭제
- Loading branch information
Showing
4 changed files
with
7,163 additions
and
186 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
config: | ||
# 일단 로컬 환경 URL | ||
target: 'http://localhost:3000' | ||
phases: | ||
# 10초 동안 | ||
- duration: 10 | ||
# 1초에 20명 | ||
arrivalRate: 20 | ||
engines: | ||
socketio-v3: | ||
transports: ['websocket'] | ||
timeout: 10000 | ||
variables: | ||
# 원하는 roomId 설정 | ||
roomId: '7b82b46b-d705-48a5-9bc5-918ee1a124a0' | ||
scenarios: | ||
- name: 'Chat room flow' | ||
engine: socketio-v3 | ||
flow: | ||
- think: 1 | ||
|
||
- namespace: '/rooms' | ||
connect: | ||
query: 'roomId={{ roomId }}' | ||
headers: | ||
x-forwarded-for: '{{ $randomNumber(1000000, 9999999) }}' | ||
|
||
- think: 2 | ||
|
||
- namespace: '/rooms' | ||
emit: | ||
channel: 'message' | ||
data: | ||
message: 'Test message' | ||
roomId: '{{ roomId }}' | ||
|
||
- think: 1 | ||
|
||
- namespace: '/rooms' | ||
emit: | ||
channel: 'vote' | ||
data: | ||
# 일단 노래 두 개가 있다고 가정하고, 랜덤 값 지정 | ||
trackNumber: "{{ $randomNumber(1,2) }}" | ||
|
||
- think: 30 |
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
Oops, something went wrong.