From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d2c8b4487ef2145,start X-Google-Attributes: gid103376,public From: bbalfour@std.caci.com (Brad Balfour) Subject: Re: Ada versus Java - Tasking Date: 1997/01/16 Message-ID: #1/1 X-Deja-AN: 210262174 references: <01bc03ee$594dc520$829d6482@joy.ericsson.se> organization: CACI, Inc. newsgroups: comp.lang.ada Date: 1997-01-16T00:00:00+00:00 List-Id: In article <01bc03ee$594dc520$829d6482@joy.ericsson.se>, "Jonas Nygren" wrote: >I have written a small producer-consumer type of program >both in Ada and Java. To my astonishment the Java code >executes faster than the Ada code. > >My test starts 50 producer-consumer pairs that run in >parallell. Each pair produces/consumes 1000 messages >of 50 bytes. I get the following timing on my P133, >16M, and running Win95: > >Ada (Gnat 3.04a) : ~30 s >Java (MS SDK-Java) : ~15 s > >This result was very much to my surprise! It would help if you posted a copy of both programs. That we we could understand your implementations and see if they are truly comperable. There are several ways you could create producer/consumers in Ada 95. Brad -- Brad Balfour SIGAda WWW Server CACI, Inc. http://www.acm.org/sigada/ (703) 277-6767 and also try: bbalfour@std.caci.com http://www.adahome.com/ 3930 Pender Drive Fairfax, VA 22030 "...they even have rules for exceptions" -- Dewar and Schonberg