Merge "Delete timeClonedSimpleDateFormat and re-add timeNewSimpleDateFormat."
This commit is contained in:
@@ -158,11 +158,10 @@ public class ExpensiveObjectsPerfTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void timeClonedSimpleDateFormat() {
|
public void timeNewSimpleDateFormat() {
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat();
|
|
||||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||||
while (state.keepRunning()) {
|
while (state.keepRunning()) {
|
||||||
sdf.clone();
|
new SimpleDateFormat();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user