Skip to content
0:00 / 0:00

#rust#zig#go

Rust vs Zig vs Go Performance

Anton Putra

122K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Anton Putra, Senior Software Engineer
  • Linked in the descriptionantonputra/tutorials
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

206K views2 years ago1 recommendation

Systems programmingProgramming languagesRustZigGo

Anton Putra compares the performance, CPU, and memory usage of Rust, Zig, and Go under load.

👨‍💼📈 Mentorship/On-the-Job Support/Consulting - calendly.com/antonputra/youtube or me@antonputra.com ▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬ ► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience) ► Located in San Francisco Bay Area, CA (US citizen) ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬ ► LinkedIn: linkedin.com/in/anton-putra ► Twitter/X: twitter.com/antonvputra ► GitHub: github.com/antonputra ► Email: me@antonputra.com ▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬ Intro Test Overview Test ▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬ ► Original Source Code: github.com/antonputra/tutorials/tree/215/lessons/215 PR - github.com/antonputra/tutorials/pull/280 #rust #golang #zig

Why it's here

1 person recommends this

u/RainingMayonnaisein r/Zig • Recommends

Rust vs Zig vs Go

u/steveoc64in r/Zig • Mentions

On “Zig good for webservers now?”

I assume you have seen this ? link to this video That was 6 months ago, and it hasn’t been topped since. Note how it’s using a 2 vCPU instance, with automatic throttling as well. This wouldn’t have been possible without Zig having a good async story. The rust server is using tokio for async io, and the zig server is using async io as well, built into the web server lib. You don’t need an extra C library to achieve this, and you don’t need to do anything special in your app code either. They are both compiled using LLVM with optimisations. The main reason the Zig server doesn’t fall apart under load like the Rust server does is because it’s using per-request arenas vs Rust having to de-allocate man…

u/Kasprosianin r/Zig • Mentions

On “zig not ready for webassembly?”

my performance observation was regarding whether to do underlying web server in Zig or Rust. watch this video showing Zig outperforming Rust: [video