MASON-INTEREST-L Archives

October 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Joey Harrison <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 28 Oct 2015 01:16:10 -0400
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (524 bytes) , text/html (1331 bytes)
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