Live data from Hacker News

Rust programs versus Go

benchmarksgame-team.pages.debian.net

201–209 of 209 posts

Re: Rust programs versus Go

#201
post #97
post #13

Earlier quoted context omitted.

Go seems to perform really poorly in the regex-redux. Against both Node and Python Go is way faster (as one would expect) apart from with the regex-redux.. https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Does Go just suck with it's regex performance? Would this be easy to fix by just pulling in a C regex library?

I disagree with the people saying the benchmarks game is useless. It mostly seems to conform to my own experiences with the various languages involved. The exception is the regex benchmark, which has little to do with the languages and everything to do with the regex library used by the language. If the dynamic scripting languages were required to use regex engines implemented in pure Python/Perl/PHP/JS, their perfor…

>> The exception is the regex benchmark, which has little to do with the languages and everything to do with the regex library used by the language.

Perhaps that's "a truth" about regex :-)

>> If the dynamic scripting languages were required to…

Then we wouldn't be using them as scripting languages!

Re: Rust programs versus Go

#202
post #97

Earlier quoted context omitted.

I disagree with the people saying the benchmarks game is useless. It mostly seems to conform to my own experiences with the various languages involved. The exception is the regex benchmark, which has little to do with the languages and everything to do with the regex library used by the language. If the dynamic scripting languages were required to use regex engines implemented in pure Python/Perl/PHP/JS, their perfor…

> I disagree with the people saying the benchmarks game is useless. It mostly seems to conform to my own experiences with the various languages involved. I think it can only tell you about the performance cieling, and even then it can't tell you that for languages like Go where fairly obvious optimizations (like arenas) are prohibited while all manner of clever tricks are permitted for other languages. Your remarks o…

>> obvious optimizations (like arenas) are prohibited

No, not prohibited.

Which widely-used third-party Go library do you suggest people use to implement Go binary-trees programs?

Re: Rust programs versus Go

#203
post #142

What's the point of posting this? Rust and Go are only "competitors" in the sense that every language competes with every other. You might as well post the page comparing Go to Fortran or Rust to Clojure. Rust and Go have different objectives, philosophies, tradeoffs, and intended domains. Posts like this seem like they serve no purpose other than to inspire flamewars. And I say this as a heavy Rust user, so don't th…

>> You might as well post the page comparing…

They already have! :-)

Re: Rust programs versus Go

#204

The results don't surprise me much, Go isn't that fast. Much more interesting are the results of the Rust vs C++ benchmarks: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... - it looks like in some cases Rust is actually faster than C++, and that's a big win for me. Also, it would be great to see some Rust vs D benchmarks.

>> Also, it would be great to see some Rust vs D benchmarks.

Make those measurements and publish them!

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re: Rust programs versus Go

#206

This would be interesting if there were any comparison of what exactly is slower or faster between the languages or the particular implementations. This data provides a great opportunity, but it's just presented as a dumb contest.

>> This data provides a great opportunity, but it's just presented as a dumb contest.

Are you going to do-the-work to take that great opportunity?

Re: Rust programs versus Go

#207

Oh no, not The Benchmarks Game again :( This whole thing is meaningless and deeply flawed. The sources of the various solutions vary a lot in quality: different libraries are used, different settings (in Go vs Java the use of threads is almost never the same). I suspect the only true end of this benchmarking exercise is to make people comment vigorously on HN and similar forms. Can we stop posting them?

>> in Go vs Java the use of threads is almost never the same

Seems like you might be suggesting the Go programs don't use multicore but the Java programs they are compared against do use multicore, or vice versa, or …?

Currently just 1 comparison (reverse-complement) shows a sequential Go program and a threaded Java program.

Re: Rust programs versus Go

#208
post #202

Earlier quoted context omitted.

> I disagree with the people saying the benchmarks game is useless. It mostly seems to conform to my own experiences with the various languages involved. I think it can only tell you about the performance cieling, and even then it can't tell you that for languages like Go where fairly obvious optimizations (like arenas) are prohibited while all manner of clever tricks are permitted for other languages. Your remarks o…

>> obvious optimizations (like arenas) are prohibited No, not prohibited. Which widely-used third-party Go library do you suggest people use to implement Go binary-trees programs?

> No, not prohibited.

Yes, prohibited

> Which widely-used third-party Go library do you suggest people use to implement Go binary-trees programs?

What does this have to do with my post?

Re: Rust programs versus Go

#209
post #202

Earlier quoted context omitted.

>> obvious optimizations (like arenas) are prohibited No, not prohibited. Which widely-used third-party Go library do you suggest people use to implement Go binary-trees programs?

> No, not prohibited. Yes, prohibited > Which widely-used third-party Go library do you suggest people use to implement Go binary-trees programs? What does this have to do with my post?

>> What does this have to do with my post?

You falsely claim that Go arenas are prohibited.

Show that there is a widely-used third-party Go library that provides arenas, which could be used to implement Go binary-trees programs, to support your claim.

Post reply on HN