Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Aug 6, 2023
1 parent 3b9bb9e commit cf7ffb2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ docker-run:
# 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


# run:
# 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

run:
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
REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info" cargo run


fix:
Expand Down
18 changes: 18 additions & 0 deletions tests/artillery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
config:
target: ws://0.0.0.0:80/:/websockets/notifications?X-Plex-Token={{TOKEN}}
engine: ws
# phases:
# - duration: 20
# arrivalRate: 10

# target: "wss://echo.websocket.org"
# flow:
# - send: "Hello world!"
# phases:
# - duration: 20
# arrivalRate: 10
scenarios:
- flow:
- loop:
- send: "Hello world!"
count: 100
12 changes: 10 additions & 2 deletions tests/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---

concurrency: 4
concurrency: 6
base: 'http://0.0.0.0:80'
iterations: 100
iterations: 2000
rampup: 2

plan:
Expand All @@ -20,3 +20,11 @@ plan:
- name: replex collections
request:
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

# - name: video transcode
# request:
# url: /video/:/transcode/universal/session/5q8kzhzrocqedtpfryf867mj/0/242.m4s

# - name: timeline
# request:
# 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 comments on commit cf7ffb2

Please sign in to comment.