🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #4301

Re: Relative Speed of Perl vs. Tcl vs. C

#4301
From: Randal L. Schwartz
Date: Mon, 22 Jan 1996 13:49
29 lines
2095 bytes
>>>>> "Tim" == Tim Hollebeek <tim@franck> writes:

Tim> An important point, though, is that all 'reasonably' written C programs
Tim> will run within a factor of 2 or so of 'about as fast as you can get,
Tim> while for some problems, Perl won't be able to break through about a
Tim> factor of 7 or so, even if you are a Perl expert.

I just want to point out to everyone that you are simply making that
figure up based on what you think Perl is doing internally.

Tom Christiansen has had a long-standing bet that someone can't give
him a program in C that he can't make run no more than "e" times
slower (about 2.8 for you non-math-geeks) in Perl.  So far, no one's
done it.

That's also been my experience as well.  Perl is *not* slow.  In fact,
a Perl-written egrep is *faster* than most vendor's egrep, for
example.

So, if you have a number of "7-times-slower" programs, post'em, and I
bet we can easily boost their speed by two or three times.

ObDisclaimer: Yes, I know a few things about Perl. :-)
-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.teleport.com/~merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
Technical Details
Message-ID: <ukvim4pceu.fsf@linda.teleport.com>
Path: arc1-ca.pugleaf.net!nntp.teleport.com!usenet
References: <4dhuoj$cbe@shellx.best.com> <9602122.8425@mulga.cs.mu.OZ.AU> <4dudsf$187@cnn.Princeton.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.teleport.com!usenet
From: merlyn@stonehenge.com (Randal L. Schwartz)
Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
Subject: Re: Relative Speed of Perl vs. Tcl vs. C
Date: 22 Jan 1996 05:49:28 -0800
Organization: Stonehenge Consulting Services; Portland, Oregon, USA
Sender: merlyn@linda.teleport.com
Message-ID: <ukvim4pceu.fsf@linda.teleport.com>
References: <4dhuoj$cbe@shellx.best.com> <9602122.8425@mulga.cs.mu.OZ.AU>
 <4dudsf$187@cnn.Princeton.EDU>
Reply-To: merlyn@stonehenge.com
NNTP-Posting-Host: linda.teleport.com
In-reply-to: tim@franck's message of 21 Jan 1996 22:14:39 GMT
X-Newsreader: Gnus v5.0.13