Against other libraries and SemaphoreSlim. Since AsyncSemaphore has more features than other libraries, I do not expect it to be as performant, but it's still important to make aware what those performance and allocation costs are. I believe the System.Diagnostics.Tracing.EventListener class can be used to track allocations. Either that or use a technique such as https://stackoverflow.com/a/61259444/1727449
Against other libraries and SemaphoreSlim. Since AsyncSemaphore has more features than other libraries, I do not expect it to be as performant, but it's still important to make aware what those performance and allocation costs are. I believe the System.Diagnostics.Tracing.EventListener class can be used to track allocations. Either that or use a technique such as https://stackoverflow.com/a/61259444/1727449