diff options
author | 2016-03-24 19:15:38 +0800 | |
---|---|---|
committer | 2016-03-24 19:15:38 +0800 | |
commit | 27cdee65fd350454f38f6a7aa51b84004bedc367 (patch) | |
tree | 07c6251171a70ec1cc9f88fc3d7dc677271a52b3 | |
parent | 0ced281ae6216c29f57ca0f8b7388a722e8da97b (diff) |
Fix the benchmark fail by caliper's change
Change-Id: I59ac37ced165b02873f55b5b777e9f1aa97b92c5
3 files changed, 3 insertions, 9 deletions
diff --git a/benchmark/jni-perf/src/JniPerfBenchmark.java b/benchmark/jni-perf/src/JniPerfBenchmark.java index b1b21ce0ba..1e7cc2bf46 100644 --- a/benchmark/jni-perf/src/JniPerfBenchmark.java +++ b/benchmark/jni-perf/src/JniPerfBenchmark.java @@ -14,9 +14,7 @@ * limitations under the License. */ -import com.google.caliper.SimpleBenchmark; - -public class JniPerfBenchmark extends SimpleBenchmark { +public class JniPerfBenchmark { private static final String MSG = "ABCDE"; native void perfJniEmptyCall(); diff --git a/benchmark/jobject-benchmark/src/JObjectBenchmark.java b/benchmark/jobject-benchmark/src/JObjectBenchmark.java index f4c059c58b..90a53b3995 100644 --- a/benchmark/jobject-benchmark/src/JObjectBenchmark.java +++ b/benchmark/jobject-benchmark/src/JObjectBenchmark.java @@ -14,9 +14,7 @@ * limitations under the License. */ -import com.google.caliper.SimpleBenchmark; - -public class JObjectBenchmark extends SimpleBenchmark { +public class JObjectBenchmark { public JObjectBenchmark() { // Make sure to link methods before benchmark starts. System.loadLibrary("artbenchmark"); diff --git a/benchmark/scoped-primitive-array/src/ScopedPrimitiveArrayBenchmark.java b/benchmark/scoped-primitive-array/src/ScopedPrimitiveArrayBenchmark.java index be276fe48c..0ad9c36950 100644 --- a/benchmark/scoped-primitive-array/src/ScopedPrimitiveArrayBenchmark.java +++ b/benchmark/scoped-primitive-array/src/ScopedPrimitiveArrayBenchmark.java @@ -14,9 +14,7 @@ * limitations under the License. */ -import com.google.caliper.SimpleBenchmark; - -public class ScopedPrimitiveArrayBenchmark extends SimpleBenchmark { +public class ScopedPrimitiveArrayBenchmark { // Measure adds the first and last element of the array by using ScopedPrimitiveArray. static native long measureByteArray(int reps, byte[] arr); static native long measureShortArray(int reps, short[] arr); |