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: test/OpenTelemetry.Tests.Stress.Logs/README.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -10,5 +10,23 @@ based on the [OpenTelemetry.Tests.Stress](../OpenTelemetry.Tests.Stress/README.m
10
10
Open a console, run the following command from the current folder:
11
11
12
12
```sh
13
-
dotnet run --framework net6.0 --configuration Release
13
+
dotnet run --framework net8.0 --configuration Release
14
+
```
15
+
16
+
To see command line options available, run the following command from the
17
+
current folder:
18
+
19
+
```sh
20
+
dotnet run --framework net8.0 --configuration Release -- --help
21
+
```
22
+
23
+
The help output includes settings and their explanations:
24
+
25
+
```text
26
+
-c, --concurrency The concurrency (maximum degree of parallelism) for the stress test. Default value: Environment.ProcessorCount.
27
+
28
+
-p, --internal_port The Prometheus http listener port where Prometheus will be exposed for retrieving internal metrics while the stress test is running. Set to '0' to
29
+
disable. Default value: 9464.
30
+
31
+
-d, --duration The duration for the stress test to run in seconds. If set to '0' or a negative value the stress test will run until canceled. Default value: 0.
Open a console, run the following command from the current folder:
16
11
17
12
```sh
18
13
dotnet run --framework net8.0 --configuration Release
19
14
```
15
+
16
+
To see command line options available, run the following command from the
17
+
current folder:
18
+
19
+
```sh
20
+
dotnet run --framework net8.0 --configuration Release -- --help
21
+
```
22
+
23
+
The help output includes settings and their explanations:
24
+
25
+
```text
26
+
-t, --type The metrics stress test type to run. Valid values: [Histogram, Counter]. Default value: Histogram.
27
+
28
+
-m, --metrics_port The Prometheus http listener port where Prometheus will be exposed for retrieving test metrics while the stress test is running. Set to '0' to disable.
29
+
Default value: 9185.
30
+
31
+
-v, --view Whether or not a view should be configured to filter tags for the stress test. Default value: False.
32
+
33
+
-o, --otlp Whether or not an OTLP exporter should be added for the stress test. Default value: False.
34
+
35
+
-i, --interval The OTLP exporter export interval in milliseconds. Default value: 5000.
36
+
37
+
-e, --exemplars Whether or not to enable exemplars for the stress test. Default value: False.
38
+
39
+
-c, --concurrency The concurrency (maximum degree of parallelism) for the stress test. Default value: Environment.ProcessorCount.
40
+
41
+
-p, --internal_port The Prometheus http listener port where Prometheus will be exposed for retrieving internal metrics while the stress test is running. Set to '0' to
42
+
disable. Default value: 9464.
43
+
44
+
-d, --duration The duration for the stress test to run in seconds. If set to '0' or a negative value the stress test will run until canceled. Default value: 0.
Copy file name to clipboardexpand all lines: test/OpenTelemetry.Tests.Stress.Traces/README.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -10,5 +10,23 @@ based on the [OpenTelemetry.Tests.Stress](../OpenTelemetry.Tests.Stress/README.m
10
10
Open a console, run the following command from the current folder:
11
11
12
12
```sh
13
-
dotnet run --framework net6.0 --configuration Release
13
+
dotnet run --framework net8.0 --configuration Release
14
+
```
15
+
16
+
To see command line options available, run the following command from the
17
+
current folder:
18
+
19
+
```sh
20
+
dotnet run --framework net8.0 --configuration Release -- --help
21
+
```
22
+
23
+
The help output includes settings and their explanations:
24
+
25
+
```text
26
+
-c, --concurrency The concurrency (maximum degree of parallelism) for the stress test. Default value: Environment.ProcessorCount.
27
+
28
+
-p, --internal_port The Prometheus http listener port where Prometheus will be exposed for retrieving internal metrics while the stress test is running. Set to '0' to
29
+
disable. Default value: 9464.
30
+
31
+
-d, --duration The duration for the stress test to run in seconds. If set to '0' or a negative value the stress test will run until canceled. Default value: 0.
Copy file name to clipboardexpand all lines: test/OpenTelemetry.Tests.Stress/README.md
+97-44
Original file line number
Diff line number
Diff line change
@@ -18,26 +18,45 @@
18
18
Open a console, run the following command from the current folder:
19
19
20
20
```sh
21
-
dotnet run --framework net6.0 --configuration Release
21
+
dotnet run --framework net8.0 --configuration Release
22
+
```
23
+
24
+
To see command line options available, run the following command from the
25
+
current folder:
26
+
27
+
```sh
28
+
dotnet run --framework net8.0 --configuration Release -- --help
29
+
```
30
+
31
+
The help output includes settings and their explanations:
32
+
33
+
```text
34
+
-c, --concurrency The concurrency (maximum degree of parallelism) for the stress test. Default value: Environment.ProcessorCount.
35
+
36
+
-p, --internal_port The Prometheus http listener port where Prometheus will be exposed for retrieving internal metrics while the stress test is running. Set to '0' to
37
+
disable. Default value: 9464.
38
+
39
+
-d, --duration The duration for the stress test to run in seconds. If set to '0' or a negative value the stress test will run until canceled. Default value: 0.
22
40
```
23
41
24
42
Once the application started, you will see the performance number updates from
25
-
the console window title.
43
+
the console window title and the console window itself.
44
+
45
+
While a test is running...
26
46
27
-
Use the `SPACE` key to toggle the console output, which is off by default.
47
+
*Use the `SPACE` key to toggle the console output, which is on by default.
28
48
29
-
Use the `ENTER` key to print the latest performance statistics.
49
+
*Use the `ENTER` key to print the latest performance statistics.
30
50
31
-
Use the `ESC` key to exit the stress test.
51
+
* Use the `ESC` key to exit the stress test.
52
+
53
+
Example output while a test is running:
32
54
33
55
```text
34
-
Running (concurrency = 1), press <Esc> to stop...
35
-
2021-09-28T18:47:17.6807622Z Loops: 17,549,732,467, Loops/Second: 738,682,519, CPU Cycles/Loop: 3
36
-
2021-09-28T18:47:17.8846348Z Loops: 17,699,532,304, Loops/Second: 731,866,438, CPU Cycles/Loop: 3
37
-
2021-09-28T18:47:18.0914577Z Loops: 17,850,498,225, Loops/Second: 730,931,752, CPU Cycles/Loop: 3
38
-
2021-09-28T18:47:18.2992864Z Loops: 18,000,133,808, Loops/Second: 724,029,883, CPU Cycles/Loop: 3
39
-
2021-09-28T18:47:18.5052989Z Loops: 18,150,598,194, Loops/Second: 733,026,161, CPU Cycles/Loop: 3
40
-
2021-09-28T18:47:18.7116733Z Loops: 18,299,461,007, Loops/Second: 724,950,210, CPU Cycles/Loop: 3
Run OpenTelemetry.Tests.Stress.exe --help to see available options.
58
+
Running (concurrency = 20, internalPrometheusEndpoint = http://localhost:9464/metrics/), press <Esc> to stop, press <Spacebar> to toggle statistics in the console...
59
+
Loops: 17,384,826,748, Loops/Second: 2,375,222,037, CPU Cycles/Loop: 24, RunningTime (Seconds): 7
0 commit comments