aspnetcore/benchmarks/BenchmarkServer
David Fowler 6053a34cf3
Don't expose HubConnectionContext on the Hub (#1674)
- Made HubCallerContext an abstract class
- Made DefaultHubCallerContext that gets data from the HubConnectionContext.
- Removed IP address
- Removed Connection property
2018-03-21 10:07:41 -07:00
..
Hubs Don't expose HubConnectionContext on the Hub (#1674) 2018-03-21 10:07:41 -07:00
BenchmarkServer.csproj
Program.cs
README.md
Startup.cs
signalr.json

README.md

Purpose

This project is to assist in Benchmarking SignalR. It makes it easier to test local changes than having the App in the Benchmarks repo by letting us make changes in signalr branches and using the example commandline below to run the benchmarks against our branches.

The SignalRWorker that runs against this server is located at https://github.com/aspnet/benchmarks/blob/dev/src/BenchmarksWorkers/Workers/SignalRWorker.cs.

Usage

  1. Push changes you would like to test to a branch on GitHub
  2. Clone aspnet/benchmarks repo to your machine or install the global BenchmarksDriver tool https://www.nuget.org/packages/BenchmarksDriver/
  3. If cloned go to the BenchmarksDriver project
  4. Use the following command as a guideline for running a test using your changes

dotnet run --server <server-endpoint> --client <client-endpoint> --properties "Transport=WebSockets" --properties "HubProtocol=messagepack" -j <path to signalr.json> --repository signalr@branch-name --projectFile benchmarks/BenchmarkServer/BenchmarkServer.csproj

  1. For more info/commands see https://github.com/aspnet/benchmarks/blob/dev/src/BenchmarksDriver/README.md