Loading apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -63,12 +63,14 @@ public class ZipFilePerfTest { @Test @Parameters(method = "getData") public void timeZipFileOpenClose(int numEntries) throws Exception { public void timeZipFileOpen(int numEntries) throws Exception { setUp(numEntries); BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); while (state.keepRunning()) { ZipFile zf = new ZipFile(mFile); state.pauseTiming(); zf.close(); state.resumeTiming(); } } Loading Loading
apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -63,12 +63,14 @@ public class ZipFilePerfTest { @Test @Parameters(method = "getData") public void timeZipFileOpenClose(int numEntries) throws Exception { public void timeZipFileOpen(int numEntries) throws Exception { setUp(numEntries); BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); while (state.keepRunning()) { ZipFile zf = new ZipFile(mFile); state.pauseTiming(); zf.close(); state.resumeTiming(); } } Loading