Code runtime
Johan Engelen via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 6 03:00:01 PDT 2016
On Sunday, 5 June 2016 at 22:34:47 UTC, John Colvin wrote:
>
> Be careful with benchmarks like this, you are giving the
> compiler a lot more information than it usually has in any real
> world case (here it knows the exact values of all the input
> data/parameters!).
+1 !
For the input data, I think you could have a function return the
data and mark that function with weak linkage so the compiler
cannot reason about it nor inline it.
-Johan
More information about the Digitalmars-d
mailing list