diff options
author | 2024-12-15 09:00:13 -0800 | |
---|---|---|
committer | 2024-12-17 17:29:16 -0800 | |
commit | b9f8d9a5eb9237615c01ed620dcf4de57eca4bdd (patch) | |
tree | 5058c3bb9649428b16cd338f7c696194d804b211 | |
parent | 891915aa3e5219b4cf31f9e7adf1c741d98880ce (diff) |
Revert "Don't pause perftest timing while closing ZipFile between iterations"
This reverts commit 891915aa3e5219b4cf31f9e7adf1c741d98880ce.
Reason for revert: the original change was unnecessary
Change-Id: If0f42011b92b221399059a042ab88bf49bfb9fcb
-rw-r--r-- | apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java b/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java index c77528021201..ed669beae1ce 100644 --- a/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java +++ b/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java @@ -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(); } } |