summaryrefslogtreecommitdiff
path: root/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java')
-rw-r--r--same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java b/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java
index c6be5a4..f4a2f05 100644
--- a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java
+++ b/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleProtobufServerActivity.java
@@ -1,7 +1,9 @@
package com.orbekk.same.android.benchmark;
import android.app.Activity;
+import android.os.Debug;
+import com.orbekk.same.benchmark.ClientBenchmark;
import com.orbekk.same.benchmark.ExampleServer;
public class ExampleProtobufServerActivity extends Activity {
@@ -10,6 +12,11 @@ public class ExampleProtobufServerActivity extends Activity {
@Override public void onResume() {
super.onResume();
server.runServer(12000);
+ try {
+ ClientBenchmark.benchmark("localhost", 12000, 100, 2000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
}
@Override public void onStop() {