Re: [Boost-bugs] [Boost C++ Libraries] #7422: Provide a condition variable with zero-overhead performance penality

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7422: Provide a condition variable with zero-overhead performance penality
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-18 20:03:52


#7422: Provide a condition variable with zero-overhead performance penality
------------------------------------------+---------------------------------
  Reporter: maxim.yegorushkin@… | Owner: viboes
      Type: Feature Requests | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.51.0 | Severity: Regression
Resolution: | Keywords: condition_variable
------------------------------------------+---------------------------------

Comment (by Maxim Yegorushkin <maxim.yegorushkin@…>):

 With this patch boost::condition_variable performs better than std one in
 the benchmark:

 {{{
 consumers,(std-boost)/std,std,boost
 1,1.738797,17452356,17148895
 2,0.818735,26905168,26684886
 3,0.909335,58318561,57788250
 4,0.929148,45236280,44815968
 5,1.255012,54510018,53825911
 6,1.410902,63880220,62978933
 7,1.094065,72988694,72190150
 8,1.073388,82271239,81388149
 9,0.915663,91362805,90526230
 10,0.991684,100724122,99725257
 }}}

 (I also updated that spreadsheet on docs.google.com)

 Nicely done!

 In the patch condition_variable always has internal_mutex member, is it
 intended?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7422#comment:29>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC