From owner-freebsd-standards Mon Apr 8 13: 2: 4 2002 Delivered-To: freebsd-standards@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id D8E1D37B417 for ; Mon, 8 Apr 2002 13:02:00 -0700 (PDT) Received: from attbi.com ([12.237.241.112]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020408200200.LZOP3676.rwcrmhc52.attbi.com@attbi.com>; Mon, 8 Apr 2002 20:02:00 +0000 Message-ID: <3CB1F73C.173C77ED@attbi.com> Date: Mon, 08 Apr 2002 15:02:04 -0500 From: Joe Halpin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jeroen Ruigrok/asmodai Cc: standards@freebsd.org Subject: Re: gettimeofday() References: <20020408181837.GC40979@daemon.ninth-circle.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jeroen Ruigrok/asmodai wrote: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/34596 > > Can anyone say something sensible about this? > > I do not have an older 4.x box to run the test against, so I would welcome > any results. > > Of someone know from the top of their head that we mucked around deeply with > it? I tried it on my machine, the following from dmesg Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff real memory = 100663296 (98304K bytes) One comment is that the test program needs to be compiled as a C++ program. I doubt that's significant, but ... Here are my results $ time ./a.out delta: 5s 43662us 5.06s real 0.64s user 4.40s system I know the machines aren't really comparable, but since mine's about million times slower than the submitter's machine and it ran in the about the same time his did ... I've got a spare partition, I'll try to load 4.2 and try it there as well tonight. joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message