Date: Sun, 8 Dec 1996 21:41:40 -0800 (PST) From: Jake Hamby <jehamby@lightside.com> To: "Eric J. Chet" <ejc@gargoyle.bazzle.com> Cc: alexj@motaba.tmc.edu.tw, 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.961208214029.167B-100000@hamby1> In-Reply-To: <Pine.BSF.3.95.961210083528.6935A-100000@gargoyle.bazzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The "pgcc" he used was not Pentium-GCC but a wrapper around GCC to link with the pthreads library. So yes, I would assume that both tests were compiled with the same version of GCC. -- Jake On Tue, 10 Dec 1996, Eric J. Chet wrote: > 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.961208214029.167B-100000>