TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust vs. C++ Benchmark Game

51 pointsby teteover 10 years ago

11 comments

jyxentover 10 years ago
As pointed out in the reddit thread, this may be more a measure of the llvm backend used by rust to the gcc backend. A more accurate comparison would be against clang.
评论 #8478856 未加载
评论 #8478915 未加载
评论 #8478732 未加载
评论 #8479061 未加载
bsaulover 10 years ago
I&#x27;ve only started to investigate rust for server side programming ( websocket in particular) but saw many discussions about the limitations rust has regarding parallel programming. Yet, iirc servo did parallel rendering of html page, so that seems a contradiction. Anyone here knows about that ?<p>Specifically, i&#x27;m currently hesitating between golang and rust for coding a small Websocket chat server. I&#x27;m ready to use beta code because rust seems more promising to me in the long term than golang, but not if the language itself has severe fundamental limitations on server side programming.
评论 #8478730 未加载
评论 #8478681 未加载
评论 #8478726 未加载
评论 #8478694 未加载
pptr1over 10 years ago
Rust really interest me. However I want them to get to 1.0 before I can evaluate whether or not to use Rust in my app. Currently I am using Go and it stable for my needs. Rust could make me switch once they get to 1.0 and people start writing more projects in Rust.<p>I want to add that stability in deciding to use a language in an application is very important. How good the standard library is and how much traction the language is gaining in projects and particularly open source projects is also important.
评论 #8478672 未加载
sqrt17over 10 years ago
Rust seems to do worse on the string-y tasks (fannkuch, k-nucleotides, regex-dna). A lot if you look at single-thread performance. Does it handle strings differently from C++?<p>(From what I understood, Rust gives you similar control over memory allocation as [a sane subset of] C++, so intuitively it should come out relatively close)
评论 #8478709 未加载
teteover 10 years ago
Found on the Rust subreddit.<p><a href="https://pay.reddit.com/r/rust/comments/2jm4vq/rust_0120_vs_c_computer_language_benchmarks_game/" rel="nofollow">https:&#x2F;&#x2F;pay.reddit.com&#x2F;r&#x2F;rust&#x2F;comments&#x2F;2jm4vq&#x2F;rust_0120_vs_c...</a>
评论 #8478916 未加载
general_failureover 10 years ago
Very impressive. What we need now is some sort of a good mainstream all that uses it to spread its popularity..<p>How is rust when it comes to deployment. C++ is a real pain to deploy for large projects. Compilation setup is also a massive headache in c++.
评论 #8478998 未加载
steveklabnikover 10 years ago
This issue on the Rust repo is very relevant: <a href="https://github.com/rust-lang/rust/issues/18085" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;18085</a>
shmerlover 10 years ago
The server is down for me.
评论 #8478593 未加载
评论 #8478702 未加载
评论 #8479283 未加载
farresitoover 10 years ago
While I&#x27;m not a huge fan of benchmarks, this is quite impressive, given the age of Rust. C++ does better memory-wise in pretty much all benchmarks.
评论 #8481699 未加载
评论 #8478592 未加载
pjmlpover 10 years ago
Actually LLVM vs GCC backend benchmark.
评论 #8478813 未加载
rando289over 10 years ago
I wish there was a D comparison. It seems to have similar goals.
评论 #8479287 未加载