Why are precompiled versions faster than those built from source code?
Maybe I am missing an environment variable or make target but my builds are always slower.
For example
%time _ = bernoulli(3*10^5)
finishes in about 2 min. 30 sec. using a precompiled version but 31 min. 41 sec. built from source (7.6) and 47 min. from source (8.0) and
time a = N(pi, digits=5000000)
finishes in 13 min. 42 sec. from source (7.6) and 20 min. 21 sec. from source (8.0)
I use SAGE64=yes and SAGE_INSTALL_GCC=no Is it PARI/GP tuning or MPIR vs. GMP or some other thread related problem?
Have you checked the build logs for errors and other anomalies?
grep -ls "^Error" logs/pkgs/*
For what it's worth, runtimes on my laptop (Core i5-6300U, 2.4 GHz) are:
and
Both versions were built from source using gcc 5.3.1.