Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ig!bionet!agate!ucbvax!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!swbatl!jmd From: jmd@swbatl.UUCP (03) Newsgroups: comp.lang.c++ Subject: Re: objective c Message-ID: <519@swbatl.UUCP> Date: 14 Apr 89 14:58:41 GMT References: <6590095@hplsla.HP.COM> Reply-To: jmd@swbatl.UUCP (Jim Doherty 5-0804 11-Y-03) Organization: Southwestern Bell Tele. Co. - Advanced Technology Lab - St. Louis Lines: 48 In article <6590095@hplsla.HP.COM> jima@hplsla.HP.COM (Jim Adcock) writes: > >Never one to resist flogging a dead horse -- I couldn't >help but notice [a different] Wiener wrote a Nov JOOP article >on the "latest and greatest" "Stepstone" ObjC 4.0 compiler. >So I couldn't help comparing the published numbers to >a simple "Integer" class I wrote in C++: It escapes me how people love to compare apples and oranges. Besides the fact that the comparisons are on two different hardware platforms, the greatly increased throughput might be attributed to the use to the GNU 'C' compiler vs. the Sun 'C' compiler. REALLY don't you think a more logical approach should be taken to these political statements based on emotion. > >[Time to perform 400000 "Int Class" assignment loops] > >Richard Wiener / Sun 3 workstation / ObjC 4.0 dynamic binding > >elapsed time for static Ints: 8.340 seconds >elapsed time for dynamic Ints: 11.820 seconds > >Richard Wiener / Sun 3 workstation / ObjC 4.0 static binding > >elapsed time for static Ints: 4.140 seconds >elapsed time for dynamic Ints: 11.820 seconds > >Jim Adcock / HP 320 workstation / ATT C++ with Gnu CC backend > >elapsed time for static Ints: 0.552 seconds >elapsed time for dynamic Ints: 0.564 seconds > >-- While I don't know the relative speeds of a Sun 3 workstation >and an HP 320, I believe they are quite similar. > >It still seems safe to say that C++ remains many, many times >faster than ObjC 4.0. > >[In C++ most of the assignment/loop time is taken by the loop >increment and test, and not by the actual Int class assignment] -- James M Doherty - SWBT - Advanced Technology Planning One Bell Center Room 11-Y-03 St. Louis, Mo. 63101 UUCP: { pyramid, ihnp4, bellcore }...!swbatl!jmd PHON: 314-235-0804 FAX: 314-235-0727