Merge "Delete timeClonedSimpleDateFormat and re-add timeNewSimpleDateFormat."

This commit is contained in:
Miguel Aranda
2022-09-15 19:58:01 +00:00
committed by Gerrit Code Review

View File

@@ -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();
}
}