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
|
||||
public void timeClonedSimpleDateFormat() {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat();
|
||||
public void timeNewSimpleDateFormat() {
|
||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||
while (state.keepRunning()) {
|
||||
sdf.clone();
|
||||
new SimpleDateFormat();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user