comp.lang.ada
 help / color / mirror / Atom feed
From: Tomas Hlavaty <hlavaty@labe.felk.cvut.cz>
Subject: C/Ada performance comparison
Date: Fri, 29 Jun 2001 16:19:22 +0200
Date: 2001-06-29T16:19:22+02:00	[thread overview]
Message-ID: <3B3C8E6A.39361C75@labe.felk.cvut.cz> (raw)

Hi,

I have a question about the CPU load of Ada programs. I have a program
reimplemented from C to Ada (Linux, GNAT) and now I've found the Ada
program consumes about 7 times more CPU time than the C one. Is it
common case or does it indicate an error in my Ada implementation (I'm
quite new in Ada)? Is there any comparison/statistics on performance of
C/Ada programs?

I've tried to reduce the CPU time load of the Ada program and I found
some surprising results. I compared rts-fsu and rts-native runtime
environment and I found that rts-fsu is better (lower CPU load and only
one running process per running program compared to rts-native). Why? I
thougth rts-native should be better because it is more oriented towards
the OS (gthreads...). Why is there so many processes when executing
program compiled with rts-native? The Ada program has no tasks.

And the last question: Is there any standard/common way how to implement
synchronous I/O multiplexing like in C (select)?

Thank you,

Tomas

-- 
Tomas Hlavaty                       mailto:hlavaty@labe.felk.cvut.cz
Department of Cybernetics           http://labe.felk.cvut.cz/~hlavaty
Faculty of Electrical Engineering   phone: (+420 2) 2435 7284
Czech Technical University



             reply	other threads:[~2001-06-29 14:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29 14:19 Tomas Hlavaty [this message]
2001-07-03 16:20 ` C/Ada performance comparison Marin David Condic
2001-07-03 19:09 ` tmoran
2001-07-03 22:09 ` Jeffrey Carter
2001-07-04 17:27   ` Colin Paul Gloster
2001-07-04 17:43     ` Samuel Tardieu
2001-07-05  7:12       ` Colin Paul Gloster
2001-07-05 11:55         ` Larry Kilgallen
2001-07-05 21:46         ` Robert Dewar
2001-07-05 13:37   ` Marin David Condic
2001-07-05 14:49     ` Jean-Pierre Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox