Skip to content

parallel SNOW slower than single core?

3 messages · Jie, R. Michael Weylandt, Brian Ripley

#
I'm not surprised -- you're doing a fairly trivial calculation so the
overhead of setting up the parallelization is likely more than the
benefit from halving the computation time. Do it on a larger
calculation and I imagine the performance will be better -- I might
just be pulling this out of thin air, but I think I remember reading
slides from Luke Tierney saying one had to be adding vectors of size
Obviously sizes will be lower for operations more expensive than
addition.

Michael
On Thu, Aug 2, 2012 at 1:13 PM, Jie <jimmycloud at gmail.com> wrote:
#
On 02/08/2012 19:13, Jie wrote:
The OS matters far more.  Overheads on Windows are much higher than on 
Linux for example.
Not use such small tasks.  This is discussed in the 'parallel' vignette 
(and we do suggest you start with 'parallel' these days).
See ?system.time