minicoro
CSharpBenchmarkExamples
minicoro | CSharpBenchmarkExamples | |
---|---|---|
6 | 1 | |
577 | 13 | |
- | - | |
4.8 | 3.1 | |
6 months ago | 12 months ago | |
C | C# | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
minicoro
-
How Much Memory Do You Need to Run 1M Concurrent Tasks?
It would be interesting to bench something extremely lightweight (like https://github.com/edubart/minicoro) against these runtimes.
By my back-of-the-napkin math, 1,000,000 coroutines would cost about 64mb + 2mb/core for stacks.. which works out to about 4x less memory than the 'winner' of this comparison, and ~30x less than go.
- Show HN: Stackful Coroutines for C
- Show HN: Asymmetric stackful cross-platform Coroutines in pure C
-
Ask HN: What Are You Working On?
A single header asymmetric stackful cross-platform coroutine library in pure C.
https://github.com/edubart/minicoro
- Minicoro - Single header cross-platform coroutine library
- Show HN: Minicoro – Single-header Coroutine library for C
CSharpBenchmarkExamples
-
How Much Memory Do You Need to Run 1M Concurrent Tasks?
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.
What are some alternatives?
covid_status
AspNetCoreDiagnosticScenarios - This repository has examples of broken patterns in ASP.NET Core applications
Oat++ - 🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
crystal - The Crystal Programming Language
fiber - C++20 fiber implementation with similar interface to std::thread, header-only / x86_64 / Linux only / stackful / built-in scheduler / thread shareable
csharplang - The official repo for the design of the C# programming language
nbnet - single header C(99) library to implement client-server network code for games
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
procedural-gl-js - Mobile-first 3D mapping engine with emphasis on user experience
alang - A minimal viable programming language on top of liblgpp
ctl - My variant of the C Template Library
LIPS - Scheme based powerful lisp interpreter in JavaScript