3 ms·
Anyone know why seemingly knowledgeable people (like the person who wrote this article) don't use micro benchmarking frameworks when they run these tests? Also
by kolbe 4y ago
Anyone know why seemingly knowledgeable people (like the person who wrote this article) don't use micro benchmarking frameworks when they run these tests?
Also, whenever you do one of these, please post the full source with it. There's no reason to leave your readers in the dark, wondering what could be going on, which is exactly what I'm doing now, because there's almost no excuse for c++ to be slower in a task than rust--it's just a matter of how much work you need to put in to make it get there.
- forrestthewoods 4y ago> please post the full source with it. There’s literally a section called Source Code…
- kolbe 4y agoI see now. I looked twice. I think most people stop after a section called "Conclusion" that ends with "Thanks for reading." It doesn't help that the formatting then leaves a large gap between sections that doesn't indicate there's more after that.
- forrestthewoods 4y agoFair!
- kllrnohj 4y agoFor C++ I guess you could make the claim that it's just too annoying to take a dependency on something like google-benchmark or whatever, since C++ dependency management is such a mess to deal with in general. But yeah I have no idea why a benchmark framework wasn't used for Rust.
- kolbe 4y agoWhenever I don't want to endure that annoyance, i just copy this single file header only microbenchmarking code: https://github.com/sheredom/ubench.h https://github.com/sheredom/ubench.h