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,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: jsa@alexandria (Jon S Anthony) Subject: Re: Java vs Ada 95 (Was Re: Once again, Ada absent from DoD SBIR solicitation) Date: 1996/11/01 Message-ID: #1/1 X-Deja-AN: 193548910 sender: news@organon.com (news) references: organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-11-01T00:00:00+00:00 List-Id: In article <19961031103614491013@dialup122-5-3.swipnet.se> lars.farm@ite.mh.se (Lars Farm) writes: > FWIW I tried the benchmark in c++ on a PowerPC 604/120, a PowerMac 8500. > I used the standard string class (refcounted) and Boehms GC + his string > wrapped in a string class similar to the stdlib string. > > - refcounted std string: 2.8 s > - Boehms GC and string: 0.4 s including 32 garbage collections The refcounted time is probably around what the GNAT time would be if 3.04 or 3.07 were used (3.05 has a serious performance bug in always copying structures). Ken, did you use 3.05 GNAT in this test??? > I don't know how Icon or Ada strings are implemented. I don't know what > kind of GC Icon uses. Still the results are similar. Boehms strings For pretty complete answer to the Icon question, see: The Implementation of the Icon Programming Language, Griswold&Griswold. It is pretty clever. > concatenate and assign fast (pointers only) and copy on substring > extraction (once per iteration). The standard string class copies on > concatenation and substring extraction, but increments a referece count > on assignment. It is worth noting that even the Boehm version in native code is still only about 3 times better than the non-optimized byte code of Icon. /Jon -- Jon Anthony Organon Motives, Inc. Belmont, MA 02178 617.484.3383 jsa@organon.com