5 ms·
No, they do not "frequently just call out to C libraries". 2 of 10 (pidigits and regex-redux) allow use of widely available third party libraries — GMP, PCRE,
by igouy 2y ago
No, they do not "frequently just call out to C libraries".
2 of 10 (pidigits and regex-redux) allow use of widely available third party libraries — GMP, PCRE, RE2 — because there were language implementations that simply wrapped those libraries.
- lossolo 2y agoYou should really create a way to filter solutions with SIMD intrinsics and without them.
- igouy 2y agoLike the hand-written vector instructions | "unsafe" section down-page? https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/nbody.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... It’s not that easy. I assume other programs hide the use in macros and libraries, in ways far beyond my simple understanding.
- lossolo 2y agoCool! I didn’t see it before, maybe because I mostly use the language vs. language feature. There is no such section there, but it would be very helpful IMO, instead of clicking every solution to check which one is intrinsics free.
- igouy 2y ago> language vs. language Where there are few enough programs that readers should check that the programs they compare seem appropriate for their purpose.
- lossolo 2y agoWell, it's your site, so you can do what you want with it, but I don't believe what you just wrote is logical at all. Sometimes, you just want to see, in general, how one language compares to another when one uses intrinsics and the other doesn't, without having to click through every single benchmark across multiple versions to find one without intrinsics. This is just bad UX and waste of time.
- neonsunset 2y agoSurely you wouldn’t say that if the language you wanted to win had SIMD API :)
- igouy 2y ago> one uses intrinsics and the other doesn't Why? Did you mean both use intrinsics or both don't? > Sometimes, you just want to see As-it-says, look for more-secs less-gz-source-code -- probably less optimised.
- igouy 2y ago* But it’s not that easy. Filters some but maybe not all and maybe filters some wrongly.
- vips7L 2y ago20% is frequently. And calling out to C is cheaty.
- igouy 2y agohttps://www.wilfred.me.uk/blog/2014/10/20/the-fastest-bigint-in-the-west/ https://www.wilfred.me.uk/blog/2014/10/20/the-fastest-bigint... Look at all the programming language implementations that provide big integers by calling out to GMP. Why would it be "cheating" when available to all and done openly? Libraries matter. >Most the Debian benchmarks for C# are cheaty too.< Just name-calling.
- igouy 2y agoIn any case, because the charts are frequently cut & pasted out-of-context they should not include pi-digits and regex-redux data. Now they don't, so thank you. If you don't think it's appropriate to compare the pi-digits and regex-redux programs, simply ignore them and compare the other 8!