Skip to content

Commit

Permalink
thread throughput fixed for stress scenario result
Browse files Browse the repository at this point in the history
  • Loading branch information
FeiWongReed committed Feb 7, 2014
1 parent 5d63115 commit bf09088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public double getThroughput() {
* @return op/nanos per thread
*/
public double getWorkerThroughput() {
return numberOfThreads * getThroughput();
return getThroughput() / numberOfThreads;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ protected void doAction(final MeasureData p)
assertNotNull(testResult);
assertTrue(testResult.getThroughput() <= 2000);
assertTrue(testResult.getWorkerThroughput() <= 1000);
assertTrue(testResult.getWorkerThroughput() <= testResult.getThroughput());
assertEquals(100, testResult.getRuntimes().size());
assertEquals(2, testResult.getPerThreadRuntimes().size());
assertTrue(testResult.getMaxTime() >= testResult.getMinTime());
Expand Down

0 comments on commit bf09088

Please sign in to comment.