3 ms·
https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/pidigits-go-3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... It’s fif
by eiieirurjdndjd 8y ago
https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/pidigits-go-3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
It’s fifty percent faster than the competing java program.
- igouy 8y agoThat 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.
- eiieirurjdndjd 8y agoI 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.
- igouy 8y agoOf 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/how-programs-are-measured.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... And read some background -- https://benchmarksgame-team.pages.debian.net/benchmarksgame/dont-jump-to-conclusions.html 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/description/summary.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...