<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0" -->

---
title: Rust vs Zig vs Go: Performance (Latency - Throughput -...
description: A performance comparison of Rust, Zig, and Go focusing on handling HTTP requests, measuring latency, throughput, saturation, and availability. Benchmarks...
canonical: https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability) | daily.dev
og:description: A performance comparison of Rust, Zig, and Go focusing on handling HTTP requests, measuring latency, throughput, saturation, and availability. Benchmarks...
og:url: https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0
og:image: https://api.daily.dev/og/posts/UOflx9pY0.png
og:image:alt: Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability)

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 3 upvotes · 1 comments

## Summary

A performance comparison of Rust, Zig, and Go focusing on handling HTTP requests, measuring latency, throughput, saturation, and availability. Benchmarks conducted using the Actix HTTP framework for Rust, Zig's framework, and the standard Go library reveal that while Rust and Zig are closely matched, Go demonstrates higher CPU usage and latency, degrading faster under heavy load. Rust's efficient memory usage gives it a slight edge over Zig in the long run.

## Content

# Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability)

In this article, we delve into a performance comparison of three prominent programming languages: Rust, Zig, and Go, with a focus on how they handle HTTP requests. The benchmarks were carried out using the Actix HTTP framework for Rust, Zig's framework, and the standard Go library. The performance metrics scrutinized included latency, throughput, saturation, and availability. These tests were meticulously run in a Kubernetes cluster environment on large EC2 and Graviton-based instances.

### Performance Metrics Analyzed

- **Latency:** The response time from the server once a request is made.
- **Throughput:** The number of requests processed by the server per second.
- **Saturation:** The point at which the server becomes fully loaded and can no longer handle additional requests effectively.
- **Availability:** The uptime and reliability of the server to handle incoming requests without errors.

### Benchmark Comparisons

**Rust and Zig**:
- Both Rust and Zig showed very close numbers across most metrics. The Actix HTTP framework in Rust and the Zig framework performed admirably in terms of low latency and high throughput.
- Rust eventually took the lead in memory usage efficiency, staying stable longer before degradation started.

**Go**:
- Go demonstrated a higher CPU usage and increased latency when compared to Rust and Zig.
- Under heavy load conditions, Go began to degrade faster, especially noticeable at high request rates. Despite several optimizations, this trend persisted.
- Around the 98,000 requests per second mark, Rust showcased a more significant degradation in memory usage but still managed to outperform Go, which showed a more severe performance drop.

### Conclusion

This detailed comparison highlights that while Rust and Zig are closely matched in terms of performance across various metrics, Go tends to degrade faster, particularly under heavy loads. Rust’s efficient memory usage gives it a slight edge over Zig in the long run. However, each language has its unique strengths, and the optimal choice can depend on specific use cases and project requirements.

## Community discussion

Top comments from developers on daily.dev.

**@ktappdev** · 0 upvotes

> So this test proved nothing new?

---

Tags: [#performance](https://daily.dev/tags/performance), [#golang](https://daily.dev/tags/golang), [#rust](https://daily.dev/tags/rust), [#zig](https://daily.dev/tags/zig)

[View this post on daily.dev](https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability)","url":"https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0"},"datePublished":"2024-10-11T19:41:07.971Z","dateModified":"2024-10-11T19:41:27.764Z","description":"A performance comparison of Rust, Zig, and Go focusing on handling HTTP requests, measuring latency, throughput, saturation, and availability. Benchmarks...","image":"https://i.ytimg.com/vi/3fWx5BOiUiY/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/3fWx5BOiUiY/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"performance,golang,rust,zig","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Rust vs Zig vs Go: Performance (Latency - Throughput - Saturation - Availability)"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/rust-vs-zig-vs-go-performance-latency---throughput---saturation---availability--uoflx9py0","comment":[{"@type":"Comment","text":"So this test proved nothing new?","datePublished":"2025-01-12T16:20:38.169Z","url":"https://daily.dev/posts/UOflx9pY0#c-yAHu14QER","author":{"@type":"Person","name":"Ken Taylor","url":"https://daily.dev/ktappdev","image":"https://lh3.googleusercontent.com/a/ACg8ocJF7ieXtGm5h6vsPou6OkKk82OBdRqi1sAe3pnN0CBFlQ6LWg=s96-c"}}]}
```

