shlogg · Early preview
Florian Rappl @florianrappl

.NET Can Yield Comparable Performance To Rust/Go/Zig In Web Tooling

Can C#/.NET yield comparable performance to Rust/Go/Zig for web tooling? Experiment shows yes! .NET's AoT compilation makes it a viable option, but challenges remain. Preliminary results show netpack beats competition in benchmarks.

This will be a short post... but hopefully with a longer one following up.
During my winter vacation I got some time to do one experiment:

Can web tooling created using C#/.NET yield comparable performance to Rust / Go / Zig ...?

So I did some coding... (that you can find on GitHub)

  
  
  The Process

I started with a crude bundler logic:

Open files
Read their content
Use a regular expression to detect, e.g., import statements in JS files
Resolve linked modules
Open resolved / existing package.json files to identify module paths

The result was easy: Using AoT (ahead-of-time compilation)...