Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 12:17:14 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        "Branko F. Grac(nar" <bfg@noviforum.si>
Cc:        freebsd-java@freebsd.org
Subject:   Re: FreeBSD vs Windows 2000 "Advanced" Server
Message-ID:  <20030828101714.GF83970@starjuice.net>
In-Reply-To: <3F4DD228.20202@noviforum.si>
References:  <20030828090512.GB83970@starjuice.net> <20030828090852.GC83970@starjuice.net> <20030828094833.GA82970@chihiro.leafy.idv.tw> <3F4DD228.20202@noviforum.si>

next in thread | previous in thread | raw e-mail | index | archive | help
On (2003/08/28 11:58), "Branko F. Grac(nar" wrote:

> $ time java TestThreads 50000 0
> TestThreads: successfully fired 50000 threads
> TestThreads: waited 0 milliseconds for all threads to complete
> 
> real    0m20.173s
> user    0m16.739s
> sys     0m1.909s
> 
> ... which 2478,56 threads/second.

These are not meaningful numbers.  The program wasn't designed to test
thread instantiation performance, and is pretty much guaranteed to do a
shit job of it. :-)

You need enough sleep time to ensure that all the threads are active at
once.

Ciao,
Sheldon.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030828101714.GF83970>