*BSD News Article 30014


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!news-feed-1.peachnet.edu!apollo1.cacd.rockwell.com!newsrelay.iastate.edu!news.iastate.edu!ponderous.cc.iastate.edu!michaelv
From: michaelv@iastate.edu (Michael L. VanLoon)
Newsgroups: comp.os.386bsd.apps
Subject: Re: Anyone compiled Rayshade?
Date: 4 May 94 03:50:28 GMT
Organization: Iowa State University, Ames, Iowa
Lines: 41
Message-ID: <michaelv.768023428@ponderous.cc.iastate.edu>
References: <michaelv.767934209@ponderous.cc.iastate.edu> <explorer.767574319@tigger.cc.iastate.edu> <2ponm8$hes@news.ysu.edu> <2q <2q73mm$7qa@news.ysu.edu>
NNTP-Posting-Host: ponderous.cc.iastate.edu

In <2q73mm$7qa@news.ysu.edu> ap713@yfn.ysu.edu (Christopher L. Mikkelson) writes:

>In a previous article, michaelv@iastate.edu (Michael L. VanLoon) says:

>>On what OS/processor?

>FreeBSD-1.0 on a 486/33

>To make a point on libm speed, the following program:

>#include <math.h>

>main()
>{
>        double          x, y;
>        for (x = 0; x < 10000; x += 1)
>                y = sqrt(x);
>}

>with libfpu:
>[chris@mercury]~/work> /usr/bin/time stst
>        0.21 real         0.05 user         0.04 sys

>and with libm:
>[chris@mercury]~/work> /usr/bin/time sqtst
>        3.19 real         3.13 user         0.00 sys

Here is that program on a 33MHz Cyrix 486DLC with Cyrix 83D87 FPU, on
NetBSD-current with the new NetBSD libm, with the libm compiled to
generate 387 native code:

[michaelv@MindBender]~/misc> /usr/bin/time speedo2 ; /usr/bin/time speedo2
        0.25 real         0.19 user         0.06 sys
        0.25 real         0.20 user         0.04 sys

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Michael L. VanLoon                 Iowa State University Computation Center
    michaelv@iastate.edu                    Project Vincent Systems Staff
  Free your mind and your machine -- NetBSD free Un*x for PC/Mac/Amiga/etc.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -