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: src/SignalR/perf/benchmarkapps/Crankier/Readme.md
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,24 @@ Load testing for ASP.NET Core SignalR
4
4
5
5
## Commands
6
6
7
+
### server
8
+
9
+
The `server` command runs a web host exposing a single SignalR `Hub` endpoint on `/echo`. After the first client connection, the server will periodically write concurrent connection information to the console.
10
+
11
+
```
12
+
> dotnet run -- help server
13
+
14
+
Usage: server [options]
15
+
16
+
Options:
17
+
--log <LOG_LEVEL> The LogLevel to use.
18
+
```
19
+
20
+
Notes:
21
+
22
+
*`LOG_LEVEL` switches internal logging only, not concurrent connection information, and defaults to `LogLevel.None`. Use this option to control Kestrel / SignalR Warnings & Errors being logged to console.
23
+
24
+
7
25
### local
8
26
9
27
The `local` command launches a set of local worker clients to establish connections to your SignalR server.
@@ -31,13 +49,19 @@ Notes:
31
49
32
50
#### Examples
33
51
34
-
Attempt to make 10,000 connections to the `echo` hub using WebSockets and 10 workers:
52
+
Run the server:
53
+
54
+
```
55
+
dotnet run -- server
56
+
```
57
+
58
+
Attempt to make 10,000 connections to the server using WebSockets and 10 workers:
35
59
36
60
```
37
61
dotnet run -- local --target-url https://localhost:5001/echo --workers 10
38
62
```
39
63
40
-
Attempt to make 5,000 connections to the `echo` hub using Long Polling
64
+
Attempt to make 5,000 connections to the server using Long Polling
41
65
42
66
```
43
67
dotnet run -- local --target-url https://localhost:5001/echo --connections 5000 --transport LongPolling
0 commit comments