Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration."

This commit is contained in:
Miguel Aranda
2022-05-13 08:54:32 +00:00
committed by Gerrit Code Review

View File

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