- Notifications
You must be signed in to change notification settings - Fork158
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
If we want to compare language performance, the problems should be entirely implemented in the languages to compare. Not only it makes the speed comparison useless, but we can't compare the ease of implementation (number of lines of code) either. Granted, it also tells us that Go can interface with C, but that shouldn't be the purpose of a performance benchmark. That's just part of the language spec. So all this test is telling us is that there exists an optimized implementation of this particular algorithm out there; an algorithm that is particularly niche as it has no use at all besides cryptocurrencies, afaik (at least if it was an implementation of FFT, it would make more sense). And it's optimized because it calls C. One thing thatcould be tested is the speed and easiness of interfacing to C (or another language), but the test should focus on the exchange of data between the two languages (are there copies between C and host language ?), and not on how well C performs a computation. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
Sone discussion could be found there:#220 author said go-ffi is exception from the rules |
BetaWas this translation helpful?Give feedback.