summaryrefslogtreecommitdiffstats
path: root/benchmarks/src
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/src')
-rw-r--r--benchmarks/src/benchmarks/regression/DateIntervalFormatBenchmark.java10
-rw-r--r--benchmarks/src/benchmarks/regression/RelativeDateTimeFormatterBenchmark.java2
2 files changed, 7 insertions, 5 deletions
diff --git a/benchmarks/src/benchmarks/regression/DateIntervalFormatBenchmark.java b/benchmarks/src/benchmarks/regression/DateIntervalFormatBenchmark.java
index e84c287..e904b4d 100644
--- a/benchmarks/src/benchmarks/regression/DateIntervalFormatBenchmark.java
+++ b/benchmarks/src/benchmarks/regression/DateIntervalFormatBenchmark.java
@@ -21,7 +21,9 @@ import com.google.caliper.SimpleBenchmark;
import android.icu.util.ULocale;
import android.icu.util.TimeZone;
-import static libcore.icu.DateIntervalFormat.*;
+import libcore.icu.DateIntervalFormat;
+
+import static libcore.icu.DateUtilsBridge.*;
public class DateIntervalFormatBenchmark extends SimpleBenchmark {
public void timeDateIntervalFormat_formatDateRange_DATE(int reps) throws Exception {
@@ -30,7 +32,7 @@ public class DateIntervalFormatBenchmark extends SimpleBenchmark {
int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY;
for (int rep = 0; rep < reps; ++rep) {
- formatDateRange(l, utc, 0L, 0L, flags);
+ DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags);
}
}
@@ -40,7 +42,7 @@ public class DateIntervalFormatBenchmark extends SimpleBenchmark {
int flags = FORMAT_SHOW_TIME | FORMAT_24HOUR;
for (int rep = 0; rep < reps; ++rep) {
- formatDateRange(l, utc, 0L, 0L, flags);
+ DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags);
}
}
@@ -50,7 +52,7 @@ public class DateIntervalFormatBenchmark extends SimpleBenchmark {
int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY | FORMAT_SHOW_TIME | FORMAT_24HOUR;
for (int rep = 0; rep < reps; ++rep) {
- formatDateRange(l, utc, 0L, 0L, flags);
+ DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags);
}
}
}
diff --git a/benchmarks/src/benchmarks/regression/RelativeDateTimeFormatterBenchmark.java b/benchmarks/src/benchmarks/regression/RelativeDateTimeFormatterBenchmark.java
index 30670b4..ea2cf4a 100644
--- a/benchmarks/src/benchmarks/regression/RelativeDateTimeFormatterBenchmark.java
+++ b/benchmarks/src/benchmarks/regression/RelativeDateTimeFormatterBenchmark.java
@@ -21,9 +21,9 @@ import com.google.caliper.SimpleBenchmark;
import java.util.Locale;
import java.util.TimeZone;
+import static libcore.icu.DateUtilsBridge.FORMAT_ABBREV_RELATIVE;
import static libcore.icu.RelativeDateTimeFormatter.getRelativeDateTimeString;
import static libcore.icu.RelativeDateTimeFormatter.getRelativeTimeSpanString;
-import static libcore.icu.RelativeDateTimeFormatter.FORMAT_ABBREV_RELATIVE;
public class RelativeDateTimeFormatterBenchmark extends SimpleBenchmark {
public void timeRelativeDateTimeFormatter_getRelativeTimeSpanString(int reps) throws Exception {