From owner-freebsd-java Tue Aug 13 20: 2:47 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EC8037B400 for ; Tue, 13 Aug 2002 20:02:46 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C048343E3B for ; Tue, 13 Aug 2002 20:02:45 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.35 #1 (Debian)) id 17eoQZ-00017E-00; Tue, 13 Aug 2002 20:02:31 -0700 Date: Tue, 13 Aug 2002 20:02:31 -0700 To: Huang wen hui Cc: java , "Bill Huey (Hui)" Subject: Re: Hotspot vm is extremely slower than nojit vm on current ? Message-ID: <20020814030231.GA4285@gnuppy.monkey.org> References: <3D59C6A4.5020708@mail.gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D59C6A4.5020708@mail.gddsn.org.cn> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Aug 14, 2002 at 10:55:32AM +0800, Huang wen hui wrote: > hi, > Mostly hotspot vm is stable and fast, but I got problem with Thread.sleep. > Look at the following simple program, on current hotspot vm is extreamly > slow. ... > ^^^^^^ > %~hwh/jre/bin/java -jar TestTimer.jar ; java -jar TestTimer.jar > query elapse time: 1354 > query elapse time: 140221 > ^^^^^^ I could have blown it with the sleep math. Previously I multiplied the value of nanosleep by a 1000x more than it should be. ;) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message