-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Performance measure framework #1176
- Loading branch information
Showing
18 changed files
with
453 additions
and
69 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,100 @@ | ||
name: 🌊 Ocean Core Performance Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
batch_size: | ||
type: choice | ||
description: Batch size of requests against fake 3rd party API | ||
default: "1000" | ||
options: | ||
- "10" | ||
- "100" | ||
- "200" | ||
- "500" | ||
- "1000" | ||
entity_kb_size: | ||
type: choice | ||
description: Entity size in kb | ||
default: "1" | ||
options: | ||
- "1" | ||
- "5" | ||
- "10" | ||
- "25" | ||
- "100" | ||
- "500" | ||
third_party_latency_ms: | ||
type: choice | ||
description: Latency in ms to each 3rd party API call | ||
default: "0" | ||
options: | ||
- "0" | ||
- "5" | ||
- "10" | ||
- "25" | ||
- "100" | ||
- "200" | ||
- "500" | ||
entities_amount: | ||
type: choice | ||
description: Explicit amount of entities created | ||
default: "500" | ||
options: | ||
- "10" | ||
- "50" | ||
- "200" | ||
- "500" | ||
- "2500" | ||
- "5000" | ||
- "10000" | ||
- "20000" | ||
- "25000" | ||
- "35000" | ||
jobs: | ||
test: | ||
name: 🌊 Ocean Performance Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'poetry' | ||
|
||
- name: Install dependencies | ||
run: | | ||
make install | ||
- name: Run Performance Test | ||
env: | ||
PORT_CLIENT_ID: ${{ secrets.PORT_CLIENT_ID }} | ||
PORT_CLIENT_SECRET: ${{ secrets.PORT_CLIENT_SECRET }} | ||
PORT_BASE_URL: ${{ secrets.PORT_BASE_URL }} | ||
SMOKE_TEST_SUFFIX: ${{ github.run_id }} | ||
THIRD_PARTY_BATCH_SIZE: ${{ inputs.batch_size }} | ||
THIRD_PARTY_LATENCY_MS: ${{ inputs.third_party_latency_ms }} | ||
ENTITY_AMOUNT: ${{ inputs.entities_amount }} | ||
ENTITY_KB_SIZE: ${{ inputs.entity_kb_size }} | ||
run: | | ||
./scripts/run-local-perf-test.sh | ||
- name: Cleanup Smoke Test | ||
if: always() | ||
env: | ||
PORT_CLIENT_ID: ${{ secrets.PORT_CLIENT_ID }} | ||
PORT_CLIENT_SECRET: ${{ secrets.PORT_CLIENT_SECRET }} | ||
PORT_BASE_URL: ${{ secrets.PORT_BASE_URL }} | ||
SMOKE_TEST_SUFFIX: ${{ github.run_id }} | ||
run: | | ||
make clean/smoke | ||
- name: Publish Performance Test Summary | ||
run: | | ||
cat ./perf-test-results-${{ github.run_id }}.log.md >> ${GITHUB_STEP_SUMMARY} |
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
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 |
---|---|---|
|
@@ -40,6 +40,10 @@ | |
"age": { | ||
"type": "number", | ||
"title": "Age" | ||
}, | ||
"bio": { | ||
"type": "string", | ||
"title": "Bio" | ||
} | ||
} | ||
}, | ||
|
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
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
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.