You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: benchmark-overhead/README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
*[Process](#process)
5
5
*[What do we measure?](#what-do-we-measure)
6
6
*[Config](#config)
7
-
+[Agents](#agents)
7
+
*[Agents](#agents)
8
8
*[Automation](#automation)
9
9
*[Setup and Usage](#setup-and-usage)
10
10
*[Visualization](#visualization)
@@ -23,9 +23,10 @@ There is one dynamic test here called [OverheadTests](https://github.com/open-te
23
23
The `@TestFactory` method creates a test pass for each of the [defined configurations](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/benchmark-overhead/src/test/java/io/opentelemetry/config/Configs.java).
24
24
Before the tests run, a single collector instance is started. Each test pass has one or more agents configured and those are tested in series.
25
25
For each agent defined in a configuration, the test runner (using [testcontainers](https://www.testcontainers.org/)) will:
26
+
26
27
1. create a fresh postgres instance and populate it with initial data.
27
28
2. create a fresh instance of [spring-petclinic-rest](https://github.com/spring-petclinic/spring-petclinic-rest) instrumented with the specified agent
28
-
3. measure the time until the petclinic app is marked "healthy" and then write it to a file
29
+
3. measure the time until the petclinic app is marked "healthy" and then write it to a file.
29
30
4. if configured, perform a warmup phase. During the warmup phase, a bit of traffic is generated in order to get the application into a steady state (primarily helping facilitate jit compilations). Currently, we use a 30 second warmup time.
30
31
5. start a JFR recording by running `jcmd` inside the petclinic container
31
32
6. run the [k6 test script](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/benchmark-overhead/k6/basic.js) with the configured number of iterations through the file and the configured number of concurrent virtual users (VUs).
@@ -65,6 +66,7 @@ relative overhead.
65
66
## Config
66
67
67
68
Each config contains the following:
69
+
68
70
* name
69
71
* description
70
72
* list of agents (see below)
@@ -74,6 +76,7 @@ Each config contains the following:
74
76
* warmupSeconds - how long to wait before starting conducting measurements
0 commit comments