Boost logo

Boost :

Subject: Re: [boost] [signals2][review] The review of the signals2 library (formerly thread_safe_signals) begins today, Nov 1st
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2008-11-01 16:27:35


On Saturday 01 November 2008 15:22, Stjepan Rajko wrote:
> Hello all,
>
> The review for the Signals2 library (formerly known as
> thread_safe_signals) submitted by Frank Mori Hess begins today (Nov

As requested earlier by Vincent, I threw together a little benchmark
program (attached) comparing the speed of boost.signals with signals2. It
produces the following output on a P4 running Linux:

boost::signals2::signal, 1 connections, invoking 1000000 times: 0.20 s

boost::signal, 1 connections, invoking 1000000 times: 0.26 s

boost::signals2::signal, 10 connections, invoking 1000000 times: 0.77 s

boost::signal, 10 connections, invoking 1000000 times: 0.91 s

boost::signal, 1 connections, tracking enabled, invoking 1000000 times:
0.28 s

boost::signals2::signal, 1 connections, tracking enabled, invoking 1000000
times: 0.72 s

boost::signal, 10 connections, tracking enabled, invoking 1000000 times:
0.78 s

boost::signals2::signal, 10 connections, tracking enabled, invoking 1000000
times: 4.92 s

boost::signals2::signal, connecting 1000000 connections then disconnecting:
0.87 s

boost::signal, connecting 1000000 connections then disconnecting: 2.13 s






Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk