Date: Tue, 10 Dec 1996 08:37:50 -0500 (EST) From: "Eric J. Chet" <ejc@gargoyle.bazzle.com> To: alexj@motaba.tmc.edu.tw Cc: freebsd-current@FreeBSD.ORG Subject: Re: Amazing to MIT Pthread-1.60b6 & Pthread built in FreeBSD-2.2-ALPHA Message-ID: <Pine.BSF.3.95.961210083528.6935A-100000@gargoyle.bazzle.com> In-Reply-To: <3.0.32.19961210135325.00de1af0@mail.tmc.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Dec 1996 alexj@motaba.tmc.edu.tw wrote: > It surprised me so much !! > > I wrote a small program to test the performance of MIT PThread-1.60b6 (MIT) used in FreeBSD-2.2-ALPHA & the pthread built in FBSD-2.2-ALPHA (FBSD). > > I had thought that the performance of FBSD should be better than that of > > MIT. However, I am wrong after making this test. > > It's really amazing. The performance of MIT is much better than that > > of FBSD. > > Is there any problem in FreeBSD-2.2-ALPHA ? > > > gcc pbench.c -lc_r > > ================================================================ > > FreeBSD 2.2-ALPHA built-in PTHREAD test.... > > Testing pthread_create() 1000 times...spending 3.228051 seconds > > Testing pthread_lock() 10000 times...spending 0.97357 seconds > > Testing pthread_yield() 10000 times...spending 12.1259162 seconds > > ================================================================ > > > pgcc pbench.c > > ================================================================ > > MIT PTHREAD 1.60B6 performance test.... > > Testing pthread_create() 100000 times...spending 0.1063555 seconds > > Testing pthread_lock() 1000000 times...spending 1.168608 seconds > > Testing pthread_yield() 1000000 times...spending 9.333843 seconds > > ================================================================== > > > The attachment is my program source code > > Hello Could you please compile both versions with either gcc or pgcc, those numbers are meaningless. Eric J. Chet - ejc@bazzle.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961210083528.6935A-100000>