Skip to content

Commit cad2f57

Browse files
committed
Run performance tests on a host with dedicated CPUs
1 parent 83319c8 commit cad2f57

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/tests-performance.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,24 @@ on:
1818

1919
jobs:
2020
test:
21-
runs-on: tools-gha-runners
21+
runs-on: gcp-perf-test-dedicated
22+
container:
23+
image: ubuntu:24.04
24+
options: --cpuset-cpus=0
2225
timeout-minutes: 30
2326
steps:
27+
- name: Install Git
28+
run: |
29+
apt-get update && apt-get install -y git &&
30+
git config --global --add safe.directory /__w/neptune-query/neptune-query
31+
2432
- name: Checkout repository
2533
uses: actions/checkout@v4
2634

2735
- name: Install Python
2836
uses: actions/setup-python@v5
2937
with:
30-
python-version: "3.10"
38+
python-version: "3.13"
3139

3240
- name: Install dependencies
3341
run: |
@@ -37,12 +45,3 @@ jobs:
3745
- name: Run performance tests
3846
run: |
3947
pytest --junitxml="test-results/test-performance.xml" tests/performance
40-
41-
- name: Report
42-
uses: mikepenz/action-junit-report@v5
43-
if: always()
44-
with:
45-
report_paths: "./test-results/test-performance*.xml"
46-
update_check: true
47-
annotate_notice: true
48-
job_name: "Performance tests"

tests/performance/test_perf_output_format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313

1414
@expected_benchmark(
15-
dict(num_experiments=5, num_paths=500, num_buckets=50, min_p0=0.500, max_p80=0.650, max_p100=1.000),
16-
dict(num_experiments=50, num_paths=50, num_buckets=50, min_p0=0.500, max_p80=0.650, max_p100=1.000),
17-
dict(num_experiments=500, num_paths=5, num_buckets=50, min_p0=0.500, max_p80=0.650, max_p100=1.000),
15+
dict(num_experiments=5, num_paths=500, num_buckets=50, min_p0=0.500, max_p80=0.800, max_p100=1.000),
16+
dict(num_experiments=50, num_paths=50, num_buckets=50, min_p0=0.500, max_p80=0.800, max_p100=1.000),
17+
dict(num_experiments=500, num_paths=5, num_buckets=50, min_p0=0.500, max_p80=0.800, max_p100=1.000),
1818
)
1919
def test_perf_create_metric_buckets_dataframe(benchmark, num_experiments, num_paths, num_buckets):
2020
"""Test the performance of create_metric_buckets_dataframe"""

0 commit comments

Comments
 (0)