3 ms·
On my Macbook Pro, the rust version seems consistently faster (20% or so) than the c++ version compiled with clang.
by jtxx000 11y ago
On my Macbook Pro, the rust version seems consistently faster (20% or so) than the c++ version compiled with clang.
- jtxx000 11y agoAs a followup, if I use __builtin_expect as recommended by the article, the situation reverses, with c++ being significantly faster.