CSharpBenchmarkExamples

Experiments in running tasks (by J-Bax)

CSharpBenchmarkExamples Alternatives

Similar projects and alternatives to CSharpBenchmarkExamples

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better CSharpBenchmarkExamples alternative or higher similarity.

CSharpBenchmarkExamples reviews and mentions

Posts with mentions or reviews of CSharpBenchmarkExamples. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-21.
  • How Much Memory Do You Need to Run 1M Concurrent Tasks?
    6 projects | news.ycombinator.com | 21 May 2023
    I was sufficiently curious and just went and tested this using BenchmarkDotNet. The example code is here (https://github.com/J-Bax/CSharpBenchmarkExamples).

    The difference is quite significant.

    (1) With the authors code (using Task.Run), I get ~428MB of allocations.

    (2) Dropping the unnecessary Task.Run(...), I get ~183MB of allocations.

    (3) Doing (2) and waiting N times on the same delay, I get ~39MB of allocations.

    This was all using .NET 6 too. .NET 7 or the 8 preview might be even better since they are working hard on performance in recent releases.

    So even looking at just (2), that puts .NET on par with the rust library.

Stats

Basic CSharpBenchmarkExamples repo stats
1
13
3.1
11 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com