3 ms·
Yeah, that is strange. Why was it so slow? Trying on a desktop with a 7900X, I get N = 1000000000, 953.7 MB starting experiments. two : 17.7 ns two+
by celrod 6y ago
Yeah, that is strange. Why was it so slow?
Trying on a desktop with a 7900X, I get
N = 1000000000, 953.7 MB
starting experiments.
two : 17.7 ns
two+ : 19.1 ns
three: 26.4 ns
bogus 1422321000
This is again close to 50% slower than your time, but nearly twice as fast.
I'll try again on the laptop and make sure I don't have other processes running.
- gspr 6y agoStrange. I suppose the compiler shouldn't matter much here, right? At any rate, I'm using GCC 10.2.1.
- celrod 6y agoI'm using gcc 10.2.0. I tried clang 11 and got more or less the same thing, so it doesn't seem to make much of a difference. Neither did messing with flags, like (I tried -fno-semantic-interposition -march=native and a few others).