This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Build system benchmark
- To: gcc at gcc dot gnu dot org
- Subject: Build system benchmark
- From: Scott A Crosby <crosby at qwes dot math dot cmu dot edu>
- Date: Mon, 20 Nov 2000 19:46:36 -0500 (EST)
I've run a benchmark of building 2.95.2 on my machine. It's a P3-500
laptop with 192MB of RAM. I'm using process accounting to see what
programs are run, their CPU time (in minutes), and total number of
invocations. (A '*' after a name is for a process which forks, but does
not exec, like a subshell.)
As the full list is pretty long, I'm omitting most of the lines. These
results were collected on a non-idle system.
With configuring, 25% of the time is spent in spent in system, and 75% in
user. I wonder how much of that system CPU time is fork/exec overhead.
5000 processes in 40 seconds is pretty impressive. Overall, only a minute
is spent in system mode.
I hope this helps people for figuring out where gcc's build time is spent.
------ Just ./configure
COUNT CPU TIME
5150 285.05re 0.53cp 0avio 369k *TOTAL*
618 42.88re 0.21cp 0avio 260k sed
92 7.18re 0.07cp 0avio 614k ld
23 79.05re 0.05cp 0avio 472k sh
130 4.30re 0.04cp 0avio 737k cc1
1795 40.82re 0.03cp 0avio 484k sh*
174 3.25re 0.03cp 0avio 298k cpp
525 2.85re 0.02cp 0avio 249k cat
20 2.13re 0.02cp 0avio 420k kpsewhich
689 2.42re 0.02cp 0avio 252k rm
131 1.40re 0.01cp 0avio 464k as
173 17.10re 0.01cp 0avio 268k gcc
23 67.12re 0.01cp 0avio 355k ***other
173 3.83re 0.01cp 0avio 277k grep
114 0.73re 0.00cp 0avio 252k tr
123 0.45re 0.00cp 0avio 255k mv
91 7.62re 0.00cp 0avio 269k collect2
--------- './configure' and 'make bootstrap'
COUNT CPU TIME
18890 13848.47re 18.94cp 0avio 418k *TOTAL*
1314 1529.43re 15.00cp 0avio 1019k cc1
1470 150.42re 1.19cp 0avio 398k cpp
1367 97.78re 0.96cp 0avio 508k as
273 39.87re 0.34cp 0avio 688k ld
53 34.75re 0.32cp 0avio 1213k cc1plus
1699 54.32re 0.29cp 0avio 261k sed
579 3115.78re 0.15cp 0avio 445k sh
1240 1702.33re 0.10cp 0avio 270k xgcc
5280 230.87re 0.10cp 0avio 467k sh*
89 6544.78re 0.09cp 0avio 329k make
1429 5.25re 0.04cp 0avio 253k rm
995 5.78re 0.04cp 0avio 249k cat
114 3.95re 0.04cp 0avio 399k ar
448 13.72re 0.03cp 0avio 252k tail
331 169.03re 0.02cp 0avio 268k gcc
329 5.87re 0.02cp 0avio 278k grep
254 2.32re 0.02cp 0avio 251k cmp
316 1.87re 0.01cp 0avio 256k mv
272 42.00re 0.01cp 0avio 268k collect2
187 1.27re 0.01cp 0avio 252k tr
117 0.47re 0.00cp 0avio 251k touch
Scott
--
No DVD movie will ever enter the public domain, nor will any CD. The last CD
and the last DVD will have moldered away decades before they leave copyright.
This is not encouraging the creation of knowledge in the public domain.