Skip to content

Commit 35b5f09

Browse files
staff0rdhalter73
authored andcommitted
Crankier: server docs (#13242)
1 parent bcdc9b0 commit 35b5f09

File tree

1 file changed

+26
-2
lines changed
  • src/SignalR/perf/benchmarkapps/Crankier

1 file changed

+26
-2
lines changed

src/SignalR/perf/benchmarkapps/Crankier/Readme.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ Load testing for ASP.NET Core SignalR
44

55
## Commands
66

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+
725
### local
826

927
The `local` command launches a set of local worker clients to establish connections to your SignalR server.
@@ -31,13 +49,19 @@ Notes:
3149

3250
#### Examples
3351

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:
3559

3660
```
3761
dotnet run -- local --target-url https://localhost:5001/echo --workers 10
3862
```
3963

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
4165

4266
```
4367
dotnet run -- local --target-url https://localhost:5001/echo --connections 5000 --transport LongPolling

0 commit comments

Comments
 (0)