diff options
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java')
-rw-r--r-- | same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java b/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java index 695988d..700030c 100644 --- a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java +++ b/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java @@ -3,6 +3,7 @@ package com.orbekk.same.android.benchmark; import android.app.Activity; import com.orbekk.same.benchmark.ExampleServer; +import com.orbekk.same.benchmark.HttpClientBenchmark; import com.orbekk.same.benchmark.HttpExampleServer; public class ExampleHttpServerActivity extends Activity { @@ -12,6 +13,9 @@ public class ExampleHttpServerActivity extends Activity { super.onResume(); try { server.runServer(12000); + HttpClientBenchmark.benchmark( + "http://localhost:12000/HttpExampleService.json", + 100, 2000); } catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e); |