aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.mk7
-rw-r--r--benchmarks/com/android/messageformat/MessageFormatBenchmark.java3
2 files changed, 8 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 75ef32c..2c8f79f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -27,3 +27,10 @@ LOCAL_STATIC_JAVA_LIBRARIES := messageformat junit-targetdex
LOCAL_SRC_FILES := $(call all-java-files-under, javatests/)
LOCAL_SDK_VERSION := 9
include $(BUILD_STATIC_JAVA_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := messageformat-benchmarks
+LOCAL_STATIC_JAVA_LIBRARIES := messageformat caliper-api-target
+LOCAL_SRC_FILES := $(call all-java-files-under, benchmarks/)
+LOCAL_SDK_VERSION := 9
+include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/benchmarks/com/android/messageformat/MessageFormatBenchmark.java b/benchmarks/com/android/messageformat/MessageFormatBenchmark.java
index 79847cb..5e4ecd5 100644
--- a/benchmarks/com/android/messageformat/MessageFormatBenchmark.java
+++ b/benchmarks/com/android/messageformat/MessageFormatBenchmark.java
@@ -16,10 +16,9 @@
package com.android.messageformat;
-import com.google.caliper.SimpleBenchmark;
import java.util.Locale;
-public class MessageFormatBenchmark extends SimpleBenchmark {
+public class MessageFormatBenchmark {
public void timePlurals(int nreps) throws Exception {
final Locale sr = new Locale("sr");
for (int i = 0; i < nreps; ++i) {