Merge "Delete timeClonedSimpleDateFormat and re-add timeNewSimpleDateFormat." am: beb81263e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217922 Change-Id: Idb9814016df8aebab311a065b90626f34aa96e19 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -158,11 +158,10 @@ public class ExpensiveObjectsPerfTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void timeClonedSimpleDateFormat() {
|
public void timeNewSimpleDateFormat() {
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat();
|
|
||||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||||
while (state.keepRunning()) {
|
while (state.keepRunning()) {
|
||||||
sdf.clone();
|
new SimpleDateFormat();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user