Skip to content

Commit

Permalink
log collecting performance report added
Browse files Browse the repository at this point in the history
  • Loading branch information
bulldog2011 committed Jan 28, 2013
1 parent 6468d68 commit e7b57de
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 5 deletions.
57 changes: 57 additions & 0 deletions samples/thriftqueue/load-result/result.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
-------------------------------------------------------
Producer Report:
-------------------------------------------------------
Log producer thread number : 50
Test duration(s) : 279.144
Total logs sent : 10000000
Log sending success count : 10000000
Log sending failure count : 0
Log sending exception count : 0
Total byes produced : 20105400000
Average log size : 2010.54
Throughput(MB/s) : 68.68857507621235
Average log sending delay(ms) : 1.2961799

-------------------------------------------------------
Consumer Report:
-------------------------------------------------------
Log consumer thread number : 50
Test duration(s) : 274.157
Total logs received : 10000000
Log receiving success count : 10000000
Log receiving failure count : 0
Log receiving exception count : 0
Total byes received : 20105400000
Average log size : 2010.54
Throughput(MB/s) : 69.93804134519353
Average log receiving delay(ms) : 1.3691828


-------------------------------------------------------
Concurrency Test Report:
-------------------------------------------------------
Producer Report:
-------------------------------------------------------
Log producer thread number : 50
Test duration(s) : 395.692
Total logs sent : 10000000
Log sending success count : 10000000
Log sending failure count : 0
Log sending exception count : 0
Total byes produced : 21588200000
Average log size : 2158.82
Throughput(MB/s) : 52.03064979186187
Average log sending delay(ms) : 1.8724801
-------------------------------------------------------
Consumer Report:
-------------------------------------------------------
Log consumer thread number : 50
Test duration(s) : 395.692
Total logs received : 10000000
Log receiving success count : 10000000
Log receiving failure count : 0
Log receiving exception count : 0
Total byes received : 21588200000
Average log size : 2158.82
Throughput(MB/s) : 52.03064979186187
Average log receiving delay(ms) : 1.8693821
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class LoadTester {

static final int INNER_LOOP = 1000;
static final int OUTTER_LOOP = 1000;
static final int OUTTER_LOOP = 200;
static final int PRODUCER_THREAD_NUM = 50;
static final int CONSUMER_THREAD_NUM = 50;
static final int LOG_MESSAGE_SIZE_LIMIT = 4 * 1024; // this is the max size, average log message size should / 2
Expand All @@ -28,11 +28,11 @@ public class LoadTester {
*/
public static void main(String[] args) {

// testProducing();
//
// testConsuming();
testProducing();

testConcurrency();
testConsuming();

// testConcurrency();
}

static void testConcurrency() {
Expand Down

0 comments on commit e7b57de

Please sign in to comment.