Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da7b0f12 authored by Miguel's avatar Miguel Committed by Miguel Aranda
Browse files

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
parent 1a0d812c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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();
        }
    }