Boost logo

Boost :

Subject: Re: [boost] [threadpool] parallel_sort example
From: k-oli_at_[hidden]
Date: 2009-03-02 16:05:28


Am Sunday 01 March 2009 22:53:14 schrieb vicente.botet:

> Oliver you are free to take this as example for the ThreadPool
> documentation, if you consider this can improve the understanding of what
> can be done with your library.

Hi Vicente,
I've executed your parallel_sort2.cpp with NN = 10000000 on a core 2 duo E6600
(with BOOST_BIND_WORKER_TO_PROCESSORS, BOOST_DISABLE_ASSERTS and -02)

std::sort: reverse 0..10000000 158 milli seconds
std::sort: 0..10000000 148 milli seconds
boost::sort: reverse 0..10000000 158 milli seconds
boost::sort: 0..10000000 148 milli seconds
parallel_sort 5000000: reverse 0..10000000 145 milli seconds
parallel_sort 5000000: 0..10000000 121 milli seconds
parallel_sort 2500000: reverse 0..10000000 169 milli seconds
parallel_sort 2500000: 0..10000000 148 milli seconds
parallel_sort 1250000: reverse 0..10000000 190 milli seconds
parallel_sort 1250000: 0..10000000 166 milli seconds
parallel_sort 625000: reverse 0..10000000 201 milli seconds
parallel_sort 625000: 0..10000000 184 milli seconds
parallel_sort 312500: reverse 0..10000000 216 milli seconds
parallel_sort 312500: 0..10000000 203 milli seconds

I've added your example - thx.

Oliver


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