Loading apct-tests/perftests/core/src/android/libcore/regression/ExpensiveObjectsPerfTest.java +2 −3 Original line number Diff line number Diff line Loading @@ -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(); } } Loading Loading
apct-tests/perftests/core/src/android/libcore/regression/ExpensiveObjectsPerfTest.java +2 −3 Original line number Diff line number Diff line Loading @@ -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(); } } Loading