Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!news.mathworks.com!usenet.eel.ufl.edu!newsfeed.internetmci.com!news.sprintlink.net!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!uunet!in1.uu.net!newsflash.concordia.ca!CC.UMontreal.CA!news.uqam.ca!UQuebec.CA!news
From: Benoit Desrosiers <desrosie>
Subject: Smalltalk performance
Sender: news@UQuebec.CA (news)
Message-ID: <DCqvup.n43@UQuebec.CA>
Date: Thu, 3 Aug 1995 17:13:37 GMT
X-Url: news:comp.lang.smalltalk?ALL
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Nntp-Posting-Host: saturne.uqah.uquebec.ca
Mime-Version: 1.0
X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4d)
Organization: Universite du Quebec
Lines: 20

I`m doing some performances testing with VisualWorks and the first one 
that I did was to do a loop. I have tested the to:do:, timesRepeat: and 
whileTrue loop. I did a "for" loop and an "if () { goto }" loop in C to 
have a reference point. Here are my result (all loops are for 100000):

VW=>  to:do: 23,  timesRepeat: 23,   whileTrue: 26

C code => for loop: 0.3,  goto: 1.2

(all times are in sec, and I put some multiplication and division in every
loops)

My question is: in the publicity for VW, they write that VW can be almost
as fast as C or C++, then why is it 20 times slower? Is it me who is wrong?
Did I hit a area where VW is particulary slow (loops with simple arithmetic)?


thanks,
Benoit

