Delete timeClonedSimpleDateFormat and re-add timeNewSimpleDateFormat.

It seems like the last time I tried "fixing" this bug I deleted the wrong test, and the original failure had remained. This corrects my previous mistake and re-adds the mistakenly deleted test.

Bug: 237633188
Test: atest ExpensiveObjectsPerfTest
Change-Id: I7c6b929e6e1f018ea9100367d30e1d6d3cdc9d17
This commit is contained in:
Miguel
2022-09-15 11:44:39 +00:00
committed by Miguel Aranda
parent 1a0d812cd8
commit da7b0f1227

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