Benchmarks with and without compiler optimizing

Hans Åberg haberg-1 at
Tue Oct 29 16:42:42 UTC 2019

> On 29 Oct 2019, at 16:18, Torbjörn Granlund <tg at> wrote:
> Hans Åberg <haberg-1 at> writes:
>  But that is not somebody has benchmarked? — Somebody tested human vs
>  computer optimization, and found that computers could do better, but
>  then there might be a tradeoff with reliability.
> You seem to be talking about two separate issues.  One is what happens
> with an asm enabled build with no -O for the C code, and the other is
> whether our asm code is better or worse than compiler generated code
> (presumably with compiler optimisation turned on).

I only had in mind the same language, C in this case, and only for the library, not external code, compared with rewritten by hand for optimizing and doing it automatically with the compiler. Perhaps the former is not used much these days. 

More information about the gmp-discuss mailing list