Merge "Delete timeClonedSimpleDateFormat." am: c6350a111b am: f5c48daae6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2145780

Change-Id: I7ae60ed59b94ffdc3eb7e4db93f404e1b2e9e5c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Miguel Aranda
2022-07-06 09:53:18 +00:00
committed by Automerger Merge Worker

View File

@@ -157,14 +157,6 @@ public class ExpensiveObjectsPerfTest {
} }
} }
@Test
public void timeNewSimpleDateFormat() {
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
while (state.keepRunning()) {
new SimpleDateFormat();
}
}
@Test @Test
public void timeClonedSimpleDateFormat() { public void timeClonedSimpleDateFormat() {
SimpleDateFormat sdf = new SimpleDateFormat(); SimpleDateFormat sdf = new SimpleDateFormat();