Movatterモバイル変換


[0]ホーム

URL:


Performance measurements (was: python on the smalltalk VM)

Cameron Lairdclaird at starbase.neosoft.com
Thu Apr 19 18:34:33 EDT 2001


In article <lcd7a9rldg.fsf at gaffa.mit.edu>,Douglas Alan  <nessus at mit.edu> wrote:...>I'm just quoting Guido from a while back.  This is, of course, for>doing number crunching using only bare Python and normal loops.  If>you use NumPy or PyAPL or some other highly optimized C-coded>extension to do matrix operations on large matrices, then you can of>course do as well as C, because your number crunching is really being>done by C.  This is assuming you can figure out a way to turn your>number crunching problem into operations on large matrices.>>All this should come as no shock -- 100 times slower for an>interpreted language is just par for a good interpreter.  Before the>spiffy Self compiler, state of the art was 10x slower than C for a>really bitchin' highly optimized Smalltalk compiler.>>|>ougHelp me, Mr. Alan.  I remember a time when "100 timesslower for an interpreted language [was] just par fora good interpreter."  I have a lot of trouble repro-ducing that today.  If it'll help, I can pull some ofmy '80s era hosts and interpreters from the closet. Yes, I get a factor of between 100 and 300 for emptyloops, but, as soon as they do anything useful, themultiple drops down to a range more like ten--definitelynot a hundred.What I remember Guido saying is something like, "MaybePython is only one one-hundredth as fast on do-nothingloops; I can live with that, that is, I have more im-portant things to spend my time on" (that's heavilyparaphrased).I'll summarize:  I don't understand what point isbeing made when someone says, "Interpreters are 1% asfast as compilers", and the evidence all has to do withempty loops.  It makes me think I'm missing something.If you mollify the claim to 10% as fast, I ... well, inthat case, I can at least believe we're looking at thesame data.Again, I recognize the Lisp community has a long andinteresting history with performance comparisons.  I'mnot reflecting on that at all.  I'm talking about cur-rent Python and, let's say, gcc--I take those to beconsistent with your intent.-- Cameron Laird <claird at NeoSoft.com>Business:http://www.Phaseit.netPersonal:http://starbase.neosoft.com/~claird/home.html


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp