Giter Site home page Giter Site logo

Comments (1)

NickCraver avatar NickCraver commented on September 21, 2024

Slimming down the above table to compare what we are asking here: MutexSlim vs. SemaphoreSlim:

Method Runtime Mean Error StdDev Allocated
SemaphoreSlim_Sync .NET 6.0 18.246 ns 0.2540 ns 0.2375 ns -
MutexSlim_Sync .NET 6.0 22.292 ns 0.1948 ns 0.1627 ns -
SemaphoreSlim_Sync .NET 4.7.2 65.291 ns 0.5218 ns 0.4357 ns -
MutexSlim_Sync .NET 4.7.2 43.145 ns 0.3944 ns 0.3689 ns -
SemaphoreSlim_Async .NET 6.0 20.920 ns 0.2461 ns 0.2302 ns -
MutexSlim_Async .NET 6.0 42.810 ns 0.4583 ns 0.4287 ns -
SemaphoreSlim_Async .NET 4.7.2 57.513 ns 0.5600 ns 0.5238 ns -
MutexSlim_Async .NET 4.7.2 76.444 ns 0.3811 ns 0.3379 ns -
SemaphoreSlim_Async_HotPath .NET 6.0 15.182 ns 0.1708 ns 0.1598 ns -
MutexSlim_Async_HotPath .NET 6.0 29.913 ns 0.5884 ns 0.6776 ns -
SemaphoreSlim_Async_HotPath .NET 4.7.2 50.912 ns 0.8782 ns 0.8215 ns -
MutexSlim_Async_HotPath .NET 4.7.2 55.409 ns 0.7513 ns 0.6660 ns -
SemaphoreSlim_ConcurrentAsync .NET 6.0 2,084.316 ns 4.5909 ns 4.0698 ns 547 B
MutexSlim_ConcurrentAsync .NET 6.0 2,120.714 ns 28.5866 ns 26.7399 ns 125 B
SemaphoreSlim_ConcurrentAsync .NET 4.7.2 3,812.444 ns 42.4014 ns 37.5877 ns 1,449 B
MutexSlim_ConcurrentAsync .NET 4.7.2 2,883.994 ns 46.5535 ns 41.2685 ns 284 B

from pipelines.sockets.unofficial.

Related Issues (20)

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.