Giter VIP home page Giter VIP logo

azure-signalr-bench's Issues

IndexOutOfRangeException while running default scenario

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?

Bench as a global .NET tool

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

Can't figure out how to benchmark my own ASP.NET hub

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.