Skip to content

Commit

Permalink
blam, multi-threaded client based on thread_id
Browse files Browse the repository at this point in the history
  • Loading branch information
codybum committed Feb 21, 2024
1 parent 47d1fed commit f1099c5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/example/TextPerformanceTesting.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,17 @@ public void onMessage(byte[] b, int offset, int length) {
Thread.sleep(1000);
}

Thread.sleep(5000);


String input = "BRRRRUUU";

for(int i = 0; i<50; i++) {
for(int i = 0; i<10; i++) {
launchThread(dataPlaneSend, input);
}

while(true) {
//for(int i = 0; i<25; i++) {
Thread.sleep(1000);
//dataPlaneSend.send(str);
}
Expand All @@ -118,7 +122,12 @@ private void launchThread(DataPlaneInterface dataPlaneSend, String input) {
public void run() {
try {
while(true) {
dataPlaneSend.send(input);
for(int i = 0; i<100; i++) {
//Thread.sleep(1000);
//dataPlaneSend.send(str);
dataPlaneSend.send(input);
}
//dataPlaneSend.send(input);
//Thread.sleep(1000);
}

Expand Down

0 comments on commit f1099c5

Please sign in to comment.