azure / azure-signalr-bench Goto Github PK
View Code? Open in Web Editor NEWBenchmark to evaluate performance of Azure Real-Time Services including Azure SignalR and Azure Web PubSub
License: MIT License
Benchmark to evaluate performance of Azure Real-Time Services including Azure SignalR and Azure Web PubSub
License: MIT License
Hi, I just installed the tool in my Windows pc using
dotnet tool install --global Microsoft.dotnet-signalr-benchmark --version 1.0.56301
but as soon as I start the test I got this exception that prevents the test to continue.
2021-04-30 17:11:30.162 +02:00 [ERR] System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Plugin.Microsoft.Azure.SignalR.Benchmark.SignalRUtils.Percentile(Int32[] sequence, Double excelPercentile) in C:\Users\giacomo.deliberali\Desktop\azure-signalr-bench-master\src\signalr\Utils\SignalRUtils.cs:line 886
at Plugin.Microsoft.Azure.SignalR.Benchmark.SignalRUtils.<>c__DisplayClass48_0.<MergeConnectionStatistics>b__0(Double i) in C:\Users\giacomo.deliberali\Desktop\azure-signalr-bench-master\src\signalr\Utils\SignalRUtils.cs:line 847
at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
at Plugin.Microsoft.Azure.SignalR.Benchmark.SignalRUtils.MergeConnectionStatistics(IDictionary`2[] results, Double[] percentileList) in C:\Users\giacomo.deliberali\Desktop\azure-signalr-bench-master\src\signalr\Utils\SignalRUtils.cs:line 846
at Plugin.Microsoft.Azure.SignalR.Benchmark.MasterMethods.CollectStatisticBase.ConnectionStatEventerCallback(IDictionary`2 stepParameters, IDictionary`2 pluginParameters, IList`1 clients) in C:\Users\giacomo.deliberali\Desktop\azure-signalr-bench-master\src\signalr\MasterMethods\CollectStatisticBase.cs:line 121
at Plugin.Microsoft.Azure.SignalR.Benchmark.MasterMethods.CollectStatisticBase.<>c__DisplayClass11_0.<<CollectStatistics>b__0>d.MoveNext() in C:\Users\giacomo.deliberali\Desktop\azure-signalr-bench-master\src\signalr\MasterMethods\CollectStatisticBase.cs:line 78
Are there any other tool versions to try out?
Has the team considered packaging Bench up as a .NET Core global tool and shipping it on NuGet? I think it'd be an interesting tool for customers to have right there on the command line for benchmarking SignalR endpoints.
cc @davidfowl @anurse @chenkennt for your thoughts
I've tried to run the benchmark on my application signalr hub but can't figure out how to.
I've added SignalRBench Hub from https://github.com/clovertrail/AspNetServer/blob/master/SignalRBench.cs
But w/e URL I put in echo.yaml the test can't seem to connect to the Hub. I can only run tests on the built-in app (dotnet signalr-bench application).
I've also ran the https://github.com/clovertrail/AspNetServer itself and can't seem to connect to it with bench tests.
Could you provide an example that uses app.MapSignalR(); and provides valid app and echo.yaml?
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.