4 ms·
It was also (needlessly) using 2 different compilers, MSVC and LLVM. This is just a bad way to compare things all around. And, for simple operations like this
by cogman10 4y ago
It was also (needlessly) using 2 different compilers, MSVC and LLVM. This is just a bad way to compare things all around.
And, for simple operations like this, you really should just look at the assembly output. If you are only generating 20ish instructions, then look at those 20 instructions rather than trying to heuristically guess what is happening.