Hacker News new | ask | show | jobs
by eiieirurjdndjd 2808 days ago
I actually looked at this before making my other comment. You’re absolutely right about the salt. One of the go benchmarks is basically pure cgo using vector intrinsics. It naturally blows idiomatic JS out of the water. So you might get those kind of results if that’s the kind of code you’re going to write, but it’s far from what I consider idiomatic. Another language’s proponent would be fair to point out that most languages have C FFIs.
1 comments

> One of the go benchmarks is

Which program? URL?

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

It’s fifty percent faster than the competing java program.

That Go pi-digits program is 50% faster than a Java program that also uses the GMP library, just like the Go program!

That Go pi-digits program is only 4% faster than a PHP program that uses the GMP library.

It's not enough to "point out that most languages have C FFIs" when for this arbitrary precision arithmetic task GMP is allowed and others step-up and contribute those programs.

I see. I had only looked at the source code of the Nodejs competitor. To be fair the point still stands that you need to read the source to know what is really being measured.
Of course you need to read the source code to know what is really being measured!

That's true of every comparison -- basic due diligence.

And read how the measurements were made --

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

And read some background --

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

And, of course, look for a task that might be appropriate --

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