News for hackers. Stuff that matters.
Re:Orthodox C++ by nzmsv on Monday December 28, 2020 @10:19AM (#25559814)
That would be one strange benchmark then. It would have to be benchmarking something other than the code in question.

Simple analogy: let's say you have a program that has 10 functions in it. You write a benchmark that exercises one of these and never (no, not once, never) calls the other functions. The other 9 are truly dead code. Would you expect the benchmark result to be different between that and a program that only included the one function being benchmarked?

Re:Orthodox C++ by asddubs on Monday December 28, 2020 @10:35AM (#25559956)
yes if the generated code causes e.g. more cache misses and branch mispredictions, which additional instructions inbetween the executed ones will