Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Commit cf7ffb2

Browse files
committed
WIP
1 parent 3b9bb9e commit cf7ffb2

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ docker-run:
2828
# REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 REPLEX_NEWRELIC_API_KEY="eu01xx2d3c6a5e537373a8f8b52003b3FFFFNRAL" RUST_LOG="debug,replex=debug" cargo watch -x run
2929

3030

31+
# run:
32+
# REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="debug" cargo watch -x run
33+
3134
run:
32-
REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info,replex=info" cargo watch -x run
35+
REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info" cargo run
3336

3437

3538
fix:

tests/artillery.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
config:
2+
target: ws://0.0.0.0:80/:/websockets/notifications?X-Plex-Token={{TOKEN}}
3+
engine: ws
4+
# phases:
5+
# - duration: 20
6+
# arrivalRate: 10
7+
8+
# target: "wss://echo.websocket.org"
9+
# flow:
10+
# - send: "Hello world!"
11+
# phases:
12+
# - duration: 20
13+
# arrivalRate: 10
14+
scenarios:
15+
- flow:
16+
- loop:
17+
- send: "Hello world!"
18+
count: 100

tests/benchmark.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22

3-
concurrency: 4
3+
concurrency: 6
44
base: 'http://0.0.0.0:80'
5-
iterations: 100
5+
iterations: 2000
66
rampup: 2
77

88
plan:
@@ -20,3 +20,11 @@ plan:
2020
- name: replex collections
2121
request:
2222
url: /replex/library/collections/954153,934149/children?contentDirectoryID=1&pinnedContentDirectoryID=1%2C4%2C16&includeCollections=1&includeExternalMedia=1&includeAdvanced=1&includeMeta=1&X-Plex-Product=Plex%20Web&X-Plex-Version=4.108.0&X-Plex-Client-Identifier=pxl0qgda8dgvhuz2jfe0wgli&X-Plex-Platform=Safari&X-Plex-Platform-Version=16.3&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=bundled&X-Plex-Device=OSX&X-Plex-Device-Name=Safari&X-Plex-Device-Screen-Resolution=1440x371%2C1440x900&X-Plex-Container-Start=0&X-Plex-Container-Size=50&X-Plex-Token={{ TOKEN }}&X-Plex-Provider-Version=6.3&X-Plex-Text-Format=plain&X-Plex-Drm=fairplay&X-Plex-Language=en-GB
23+
24+
# - name: video transcode
25+
# request:
26+
# url: /video/:/transcode/universal/session/5q8kzhzrocqedtpfryf867mj/0/242.m4s
27+
28+
# - name: timeline
29+
# request:
30+
# url: /:/timeline?ratingKey=933523&key=%2Flibrary%2Fmetadata%2F933523&playbackTime=23370&playQueueItemID=11131&state=playing&hasMDE=1&context=source%3Ahub.custom.collection&row=0&col=0&time=1188000&duration=8644000&X-Plex-Product=Plex%20Web&X-Plex-Version=4.108.0&X-Plex-Client-Identifier=pxl0qgda8dgvhuz2jfe0wgli&X-Plex-Platform=Safari&X-Plex-Platform-Version=16.3&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=bundled&X-Plex-Device=OSX&X-Plex-Device-Name=Safari&X-Plex-Device-Screen-Resolution=1440x371%2C1440x900&X-Plex-Token=U2_Qf8WFz5wT-tN_hdfx&X-Plex-Language=en-GB&X-Plex-Session-Id=0eb81135-487f-4dc3-824a-6624a806067d&X-Plex-Drm=fairplay&X-Plex-Text-Format=plain&X-Plex-Provider-Version=5.1&X-Plex-Session-Identifier=weclgsrbj54hx5jnnwx8logf

0 commit comments

Comments
 (0)