comp.lang.ada
 help / color / mirror / Atom feed
* C/Ada performance comparison
@ 2001-06-29 14:19 Tomas Hlavaty
  2001-07-03 16:20 ` Marin David Condic
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Tomas Hlavaty @ 2001-06-29 14:19 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-07-05 21:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-29 14:19 C/Ada performance comparison Tomas Hlavaty
2001-07-03 16:20 ` 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

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