MASON-INTEREST-L Archives

October 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 28 Oct 2015 08:53:28 -0400
MIME-version:
1.0 (Mac OS X Mail 7.3 \(1878.6\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=us-ascii
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Message-ID:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (28 lines)
The total number of jobs is repeat x parallel.

On Oct 28, 2015, at 1:16 AM, Joey Harrison <[log in to unmask]> wrote:

> I'm experimenting with the -parallel flag and finding that using 2 parallel threads is slower than a single thread, and using 3 is slower still. I have 4 cores on my machine, FYI.
> 
> $ time java -jar HeatBugs.jar -for 10000 -repeat 4 -parallel 1 -quiet
> 
> real	0m4.514s
> user	0m6.098s
> sys	0m0.749s
> 
> $ time java -jar HeatBugs.jar -for 10000 -repeat 4 -parallel 2 -quiet
> 
> real	0m4.799s
> user	0m12.019s
> sys	0m1.437s
> 
> $ time java -jar HeatBugs.jar -for 10000 -repeat 4 -parallel 3 -quiet
> 
> real	0m5.972s
> user	0m21.190s
> sys	0m2.933s
> 
> What's the deal here?
> 
> Joey

ATOM RSS1 RSS2