[image] oscar6echo: I have added a parallel version of the algo. Before going into parallelization, I’d suggest improvements to the algorithm. As I called out, essentially all of its time is spent in a highly suboptimal, quadratic-time, duplicates check. A trivial usage of a HashSet already … Answer from steffahn on users.rust-lang.org
🌐
Reddit
reddit.com › r/rust › speed of go vs rust in practice/real world experience?
r/rust on Reddit: Speed of Go vs Rust in practice/real world experience?
June 23, 2023 -

Hi!

I don't want to start another language war, so let me preface this by saying I love both Go and Rust like they are my own.

That out of the way: Do you have practical/real-world experience with the performance of Go, and the performance of Rust in the same setting?

How many people worked on the codebases? Which one is newer?

I'm asking because I've got a feeling that for smaller companies, Go would in practice (not in theory) outperform Rust because Rust's design encourages the use of inefficient patterns -- like cloning a bunch where you could theoretically pass a reference

Discussions

Rust vs Go vs C++
I was solving a problem on leetcode with c++ and for a very big vector, i get TLE, so the idea come to me to test with go and then i have tested with rust, still TLE. Anyways I thought rust would be faster or rarely same with go but Results C++ 0.56s to compile 14.61s to execute Go 0.23s to ... More on users.rust-lang.org
🌐 users.rust-lang.org
19
0
August 7, 2024
Rust vs. C vs. Go runtime speed comparison
I have written the same simple numerical program in Rust, C, Go, and was hoping that Rust runtime would be about as fast as C. It turns out that it is 10x slower than the best C compiled program, and 7x slower than the g… More on users.rust-lang.org
🌐 users.rust-lang.org
1
1
December 18, 2023
Is Go easier to learn than C, C++, Rust?
It's simpler than Rust / C / C++ and you're likely to get memory savings from making the switch from Node. Just as an example, I rewrote a couple discord bots I had in Node to Go for some POC on savings. Went from 90 - 120MB of RAM in the Node version to about 8 - 12MB of RAM running the Go version, along with lower CPU usage. I find it easy to learn and generally fun to code in. Definitely recommend having it in your programming toolkit. More on reddit.com
🌐 r/golang
101
134
January 13, 2024
Rust vs. Go NO, it's Rust and Go.
Most developers are polyglots. That's really quite common. Unless you're experienced, I would advise against trying to learn two languages at the same time, especially while trying to learn Rust. That's a good way to get frustrated and not actually retain what you're trying to learn. More on reddit.com
🌐 r/golang
58
152
March 31, 2024
🌐
Medium
medium.com › @marek.michalik › c-vs-rust-vs-go-performance-analysis-945ab749056c
C vs Rust vs Go: performance analysis | by Marek Michalik | Medium
July 18, 2019 - In both C and Rust it was easy to write efficient code without any extra optimizations. On the other hand, both Rust and Go implementation was fast in terms of developer productivity. In terms of implementing efficient algorithms Rust seems ...
🌐
JetBrains
blog.jetbrains.com › rust › 2025 › 06 › 12 › rust-vs-go
Rust vs Go: Which One to Choose in 2025 | The RustRover Blog
February 17, 2026 - For instance, a benchmark by benchmarks game shows that Rust implementations tend to have lower memory use and are often faster in computation-heavy tasks compared to Go. For example, Servo, a high-performance browser engine developed by Mozilla, leverages Rust’s ability to manage memory efficiently to improve parallelism and ensure safety, significantly enhancing browsing speed.
🌐
Bitfield Consulting
bitfieldconsulting.com › posts › rust-vs-go
Rust vs Go — Bitfield Consulting
February 15, 2026 - Rust’s clever compiler produces optimised code that runs as fast as the underlying hardware will allow, equalling the performance of C++ or assembly language programs without sacrificing memory safety. Control. To get the most out of modern CPUs, programmers need to get “close to the metal”, and Rust offers low-level control and excellent interoperability with C/C++ libraries. Go is an ideal language when the situation demands:
🌐
Quora
quora.com › What-is-the-performance-comparison-between-Golang-Rust-and-C-C
What is the performance comparison between Golang, Rust, and C/C++? - Quora
Answer: Since Golang, Rust and ... there are no intrinsic reasons for any performance differences as long as one compares the same code compiled with the same compiler backend (e.g. LLVM) using the same compiler options...
Find elsewhere
🌐
Programming Language Benchmarks
programming-language-benchmarks.vercel.app › go-vs-rust
Go VS Rust benchmarks, Which programming language or compiler is faster
* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)
🌐
Medium
medium.com › @shyamsundarb › the-empire-strikes-back-c-enters-the-fray-c-vs-rust-vs-c-vs-go-30165036da81
The empire strikes back — C++ enters the fray. C++ vs Rust vs C# vs Go | by B Shyam Sundar | Medium
September 3, 2023 - In idle state rust’s CPU usage is slightly higher than Go and Go is slightly higher than C# and C++. C#’s memory usage when idle is slightly higher than Go, and Go’s memory usage is slightly higher than C++. Rust’s memory usage is very minimal.
🌐
Rust Programming Language
users.rust-lang.org › code review
Rust vs. C vs. Go runtime speed comparison - #31 by steffahn - code review - The Rust Programming Language Forum
December 20, 2023 - I have written the same simple numerical program in Rust, C, Go, and was hoping that Rust runtime would be about as fast as C. It turns out that it is 10x slower than the best C compiled program, and 7x slower than the g…
🌐
Clockwise
getclockwise.com › home › blog › go (golang) vs. rust: performance comparison
Go (Golang) vs. Rust: Performance Comparison | Clockwise
March 4, 2021 - Go also provides the previously mentioned Goroutines, enabling developers to run functions as subprocesses. Rust's performance is outstanding and comparable to C and C++, which are often regarded as the highest-performance compiled languages.
🌐
Medium
medium.com › @sudhis › rust-vs-go-vs-python-vs-c-afd7ae0aa5a7
Rust Vs Go Vs Python Vs C++. Performance Analysis of Simple Loops in… | by  Sudhi S. | Medium
April 9, 2025 - Compiled languages (C++, Rust, ... 50–600 times faster. C++ delivers the best overall performance with the smallest executable size, while Rust and Go follow closely behind in execution speed....
🌐
LinkedIn
linkedin.com › pulse › cc-vs-rust-go-python-can-you-really-compare-them-bhattacharya
C/C++ vs Rust vs Go vs Python: Can you really compare them?
April 20, 2021 - However, that doesn’t mean that Go is slow. It is significantly faster than Python and if the Internet is to be believed, then can be almost as fast as C/C++/Rust in certain cases
🌐
LogRocket
blog.logrocket.com › home › go vs. rust: when to use rust and when to use go
Go vs. Rust: When to use Rust and when to use Go - LogRocket Blog
December 3, 2024 - Rust, known for high performance, precise memory safety, and lack of garbage collection, is preferred for systems programming, tackling memory-intensive tasks, or leveraging advanced coroutines.
🌐
Google Groups
groups.google.com › g › golang-nuts › c › WBnqwLjzTmE
Achieving C/C++/Rust comparable performance with Golang
December 14, 2022 - Go is a high performant garbage collected language, (considered) memory safe programming language, and as such its performance may not be comparable with other languages such as C/C++/Rust under certain application scenarios.
🌐
Jinal Desai
jinaldesai.com › home › comparison › performance comparison of python, golang, rust, and c++
Performance Comparison of Python, Golang, Rust, and C++ – Jinal Desai
January 2, 2026 - While Go is compiled, like C++ and Rust, its execution model and garbage collection introduce some overhead, making it slower than Rust and C++ in computational tasks. ... Garbage Collection: Go’s automatic garbage collector introduces some ...
🌐
CodiLime
codilime.com › blog › software development › backend › rust vs. go — what do you need to know about these languages? - codilime
Rust vs. Go — what do you need to know about these languages? - CodiLime
April 1, 2022 - Golang uses a garbage collector. Rust introduced an innovative feature called ownership and borrowing. This is a concept where every object has an owner who can give it to someone else or borrow it. Furthermore, in Rust we can create a ONE AND ONLY mutable reference or multiple immutable references. With this approach, Rust resolves common memory errors without a garbage collector, which makes Rust’s performance higher than that of Golang.