From 891915aa3e5219b4cf31f9e7adf1c741d98880ce Mon Sep 17 00:00:00 2001 From: Shai Barack Date: Wed, 11 Dec 2024 09:19:33 -0800 Subject: Don't pause perftest timing while closing ZipFile between iterations No need to do that. Ran into this while researching go/smol-zipfile. Change-Id: Id059e28e9a8b08a6138e0aa6de11e2e2364a52b6 --- apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java b/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java index ed669beae1ce..c77528021201 100644 --- a/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java +++ b/apct-tests/perftests/core/src/android/libcore/ZipFilePerfTest.java @@ -63,14 +63,12 @@ public class ZipFilePerfTest { @Test @Parameters(method = "getData") - public void timeZipFileOpen(int numEntries) throws Exception { + public void timeZipFileOpenClose(int numEntries) throws Exception { setUp(numEntries); BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); while (state.keepRunning()) { ZipFile zf = new ZipFile(mFile); - state.pauseTiming(); zf.close(); - state.resumeTiming(); } } -- cgit v1.2.3-59-g8ed1b