Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration."
This commit is contained in:
@@ -70,6 +70,9 @@ public class ZipFilePerfTest {
|
|||||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||||
while (state.keepRunning()) {
|
while (state.keepRunning()) {
|
||||||
ZipFile zf = new ZipFile(mFile);
|
ZipFile zf = new ZipFile(mFile);
|
||||||
|
state.pauseTiming();
|
||||||
|
zf.close();
|
||||||
|
state.resumeTiming();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user