Merge "Delete timeClonedSimpleDateFormat." am: c6350a111b

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

Change-Id: I1a1aaf990929d3f2505d410b50ecfa22098ff4e9
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:34:38 +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();