[Scons-dev] scons daemon

Schleimer, Ben bensch128 at yahoo.com
Tue Dec 29 14:07:59 EST 2015


Hi William,


>Can you give the time saving using --debug=time for -j1 and -j4?
>

   Sure, 

regular scons build (scons -jX --debug=time)
a clean build with -j1 is:
Total build time: 20.901390 seconds
Total SConscript file execution time: 0.149543 seconds
Total SCons execution time: 0.444850 seconds
Total command execution time: 20.306997 seconds


an incremental build with -j1 is:
Total build time: 2.439754 seconds
Total SConscript file execution time: 0.151794 seconds
Total SCons execution time: 0.337350 seconds
Total command execution time: 1.950610 seconds


a clean build with -j4 is:
Total build time: 7.158301 seconds
Total SConscript file execution time: 0.153021 seconds
Total SCons execution time: 0.107556 seconds
Total command execution time: 6.897724 seconds


an incremental build with -j4 is:
Total build time: 2.368260 seconds
Total SConscript file execution time: 0.151281 seconds
Total SCons execution time: 0.183930 seconds
Total command execution time: 2.033049 seconds


interactive build (scons --interactive -jX --debug=time)
a clean build with -j1:
time to do a build = 19.983217001 sec

an incremental build with -j1:
time to do a build = 2.2111852169 sec

a clean build with -j4:
time to do a build = 6.93614792824 sec

an incremental build with -j4:
time to do a build = 2.17438697815 sec


It's consistently 0.2 seconds faster with the interactive build.
Not a huge amount but I'm not using that many SConscript files.
(5 SConscript files and 2 SConstruct files)



Cheers

Ben


More information about the Scons-dev mailing list