-
Notifications
You must be signed in to change notification settings - Fork 1k
77 lines (65 loc) · 2.64 KB
/
performance-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Performance test
on:
push:
branches:
- dev-2.x
jobs:
perf-test:
if: github.repository_owner == 'opentripplanner' && !startsWith(github.event.head_commit.message ,'Bump serialization version id for')
runs-on: performance-test
strategy:
matrix:
include:
- location: germany # all of Germany (500k stops, 200k patterns) but no OSM
iterations: 1
jfr-delay: "50s"
- location: norway
iterations: 4
jfr-delay: "35s"
- location: baden-wuerttemberg # German state of Baden-Württemberg: https://en.wikipedia.org/wiki/Baden-W%C3%BCrttemberg
iterations: 4
jfr-delay: "50s"
- location: skanetrafiken
iterations: 1
jfr-delay: "50s"
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.2
- name: Build jar
run: mvn -DskipTests --batch-mode package -P prettierSkip
- name: Build graph
run: |
mkdir graph
cp test/performance/${{ matrix.location }}/build-config.json graph/build-config.json
cp target/otp-*-SNAPSHOT-shaded.jar otp.jar
java -Xmx32G -jar otp.jar --build --save graph
- name: Copy graph, run speed test
env:
PERFORMANCE_INFLUX_DB_PASSWORD: ${{ secrets.PERFORMANCE_INFLUX_DB_PASSWORD }}
MEASUREMENT_ENVIRONMENT: CI
SPEEDTEST_LOCATION: ${{ matrix.location }}
MAVEN_OPTS: "-Xmx50g -XX:StartFlightRecording=delay=${{ matrix.jfr-delay }},duration=30m,filename=${{ matrix.location}}-speed-test.jfr"
run: |
mv graph/graph.obj test/performance/${{ matrix.location }}
mvn exec:java -Dexec.mainClass="org.opentripplanner.transit.raptor.speed_test.SpeedTest" -Dexec.classpathScope=test -Dexec.args="--dir=test/performance/${{ matrix.location }} -p md -n ${{ matrix.iterations }} -i 3 -0" -P prettierSkip
- name: Archive travel results file
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.location }}-travelSearch-results.csv
path: test/performance/${{ matrix.location }}/travelSearch-results.csv
- name: Archive Flight Recorder instrumentation file
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.location }}-flight-recorder
path: ${{ matrix.location}}-speed-test.jfr