jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes how to calculate the speedup of performance in percentage Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to calculate the speedup of performance in percentage" Watch "how to calculate the speedup of performance in percentage" New topic
Author

how to calculate the speedup of performance in percentage

Sara Brown
Ranch Hand

Joined: Feb 22, 2012
Posts: 55
assume performance with multithread


core 1
thread 1 = 5 sec

core 2
thread 1 = 3 sec
thread 2 = 2 sec


how to calculate the speedup of performance in percent?


i am really confused. what to take to calculate and how? please, thank you.

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9952
    
    6

We don't have enough information. It would depend on how you define "speedup". It would also depend on whether in the "core 2" example, did they run sequentially? Did they run interleaved and the time listed is how long each thread took by itself?

Personally, I don't see what difference it makes how long each thread took - what matters is how long the total job took. If thread 1 starts and runs to completion before thread 2 can start, then you really haven't saved anything.

Multi-threading isn't a panacea. It won't always save you time. Think about the old saying that "Nine women can't have a baby in one month". Some tasks can't be split up, so no matter how many threads you have, you won't save any time.


Never ascribe to malice that which can be adequately explained by stupidity.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
fred rosenberger wrote: . . . "Nine women can't have a baby in one month". . . .
Isaac Asimov, in one of his “Robot” stories, wrote:If one and a half chickens lay one and a half eggs in one and a half days, how many eggs will nine chickens lay in nine days?
Look for Amdahl's_law.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to calculate the speedup of performance in percentage
 
Similar Threads
calculating cosec or sec
Puzzle anyone
Performance Data
SCEA and OMG
Connecting Multiple Oracle Databases with one Application