* Real Bourne Shell for Linux?
@ 1998-04-27 15:51 brinkmann
0 siblings, 0 replies; 3+ messages in thread
From: brinkmann @ 1998-04-27 15:51 UTC (permalink / raw)
To: axp-list
I'd like to find a REAL Bourne Shell for Linux... Is there such a
thing? Bash is great for command line use, but pretty slow for shell
scripts. Has anyone compiled the FreeBSD or NetBSD Bourne Shell
under Linux? If so, are there any "gotchas"?
For example, the "shell benchmark", "while date; do date; done | uniq
-c", run on my Alpha EB164 (300 MHz) gives 317 per second using DU 3.2C
(real Bourne shell), 88 per second using Redhat Linux 5.0 with Bash and
91 with Ash. This isn't a problem for those of us who can only type 40
WPM, but it is a problem when executing a shell script.
As an aside, this benchmark, run on other machines gives:
Rate Processor
---- ---------
317 Alpha, 300 MHz, 1MB cache, 64 MB main memory, DU, sh
310 Pentium 166 laptop - FreeBSD, sh
119 Dual Pentium 200 Mhz, 256 MB main memory, Linux, bash
88 Alpha, 300 MHz, 1MB cache, 64 MB main memory, Linux, bash
70 R4000, 100 MHz, 144 MB main memory, IRIX, sh
60 Ultra-1, Solaris, sh
46 Pentium 90 MHz, ? memory, Linux, bash
17 Sparc 20, ? memory, Solaris, sh
11 Sparc 5, ? memory, Solaris, sh
10 Sparc 10, Solaris, sh
Jon
---
Dr. Jon Brinkmann Apache Point Observatory
Instrument Scientist 2001 Apache Point Road
Internet: brinkmann@nmsu.edu P.O. Box 59
URL: http://www.apo.nmsu.edu/brinkmann/ Sunspot, NM 88349-0059
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Real Bourne Shell for Linux?
@ 1998-04-27 15:58 Greg Lindahl
1998-04-27 17:21 ` Sheer Panic
0 siblings, 1 reply; 3+ messages in thread
From: Greg Lindahl @ 1998-04-27 15:58 UTC (permalink / raw)
To: axp-list
> For example, the "shell benchmark", "while date; do date; done | uniq
> -c", run on my Alpha EB164 (300 MHz) gives 317 per second using DU 3.2C
> (real Bourne shell), 88 per second using Redhat Linux 5.0 with Bash and
> 91 with Ash. This isn't a problem for those of us who can only type 40
> WPM, but it is a problem when executing a shell script.
This isn't a shell benchmark. This is a process creation benchmark.
Real shell scripts may or may not have a process creation bottleneck.
They often spend much of their time passing data down pipes and using
utilities.
The best way to make a shell script fast is often to rewrite it in
Perl.
-- g
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Real Bourne Shell for Linux?
1998-04-27 15:58 Real Bourne Shell for Linux? Greg Lindahl
@ 1998-04-27 17:21 ` Sheer Panic
0 siblings, 0 replies; 3+ messages in thread
From: Sheer Panic @ 1998-04-27 17:21 UTC (permalink / raw)
To: axp-list
this does bring to mind the question of "why is linux so slow to fork?".
My linux news server is _faster_ than my OSF/1 news server was. But my
mail server will always run OSF.. because I can't afford the "hit" that
forking under linux causes. Anyone have any guesses why it "costs" so much
to fork under linux?
On Mon, 27 Apr 1998, Greg Lindahl wrote:
> > For example, the "shell benchmark", "while date; do date; done | uniq
> > -c", run on my Alpha EB164 (300 MHz) gives 317 per second using DU 3.2C
> > (real Bourne shell), 88 per second using Redhat Linux 5.0 with Bash and
> > 91 with Ash. This isn't a problem for those of us who can only type 40
> > WPM, but it is a problem when executing a shell script.
>
> This isn't a shell benchmark. This is a process creation benchmark.
>
> Real shell scripts may or may not have a process creation bottleneck.
> They often spend much of their time passing data down pipes and using
> utilities.
>
> The best way to make a shell script fast is often to rewrite it in
> Perl.
>
> -- g
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-04-27 18:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-27 15:58 Real Bourne Shell for Linux? Greg Lindahl
1998-04-27 17:21 ` Sheer Panic
-- strict thread matches above, loose matches on Subject: below --
1998-04-27 15:51 brinkmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox