*BSD News Article 42140


Return to BSD News archive

Xref: sserve comp.unix.bsd:16058 comp.unix.advocacy:4231 comp.sys.sun.misc:17370 comp.unix.pc-clone.32bit:8102
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news
From: gjb@werple.mira.net.au (Greg Black)
Newsgroups: comp.unix.bsd,comp.unix.advocacy,comp.sys.sun.misc,comp.unix.pc-clone.32bit
Subject: Re: What do people have against BSD (or Linux for that matter)? (was: Whither NeoSoft)
Date: 6 Feb 1995 18:02:21 +1100
Organization: werple public-access unix, Melbourne
Lines: 45
Message-ID: <3h4hht$ef4@werple.mira.net.au>
References: <3g3s2k$6i@villa.fc.net> <3g8b6m$plu@Starbase.NeoSoft.COM> <3g9eev$egq@Starbase.NeoSoft.COM> <3gc00m$cld@nntp1.u.washington.edu> <id.AOYG1.3SH@nmti.com>
Reply-To: gjb@gba.oz.au (Greg Black)
NNTP-Posting-Host: werple.mira.net.au

peter@nmti.com (Peter da Silva) writes:

>> That's probably called GCC vs. standard, non-optimized Sun cc, you
>> dolt.  Hope this helps.  Try a head-to-head 'echo 2^8192 | bc' for
>> some kicks.  For the record, my '66 does it in 4.1 sec.

>Friendly local SS-10, no other users.
>% uname -a
>SunOS wssql01 4.1.3 1 sun4m
>% /bin/time sh -c "echo '2^8192' | bc > /dev/null"
>	8.2 real         7.8 user         0.0 sys  

>486 DX2/66, no other users.
>% uname -a
>FreeBSD bonkers.taronga.com 1.1.5.1(RELEASE) BONKERS#21 i386
>% /usr/bin/time sh -c "echo '2^8192' | bc > /dev/null"
>	4.71 real         3.88 user         0.15 sys

>Alpha OSF/1 (DEC 4000/710), heavily loaded:
>% uname -a
>OSF1 sonic.nmti.com V3.0 347 alpha
>% /bin/time sh -c "echo '2^8192' | bc > /dev/null"

>real   3.8
>user   1.6
>sys    0.1

>If performance matters that much, give DEC a call.

Well, there's always the much cheaper solution of getting faster
software:

486 DX2/33, 5 other users.
$ uname -a
BSD/386 maxim.gba.oz.au 1.1 0 i386
$ time sh -c "echo '2^8192' | bc > /dev/null"
        9.45 real         8.56 user         0.42 sys
$ time sh -c "echo '2^8192' | calc > /dev/null"
        1.34 real         0.64 user         0.18 sys

And yes, they do both produce the same 2467 digit answer.  It
may even be correct :-)

-- 
Greg Black -- gjb@gba.oz.au