Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 891915aa authored by Shai Barack's avatar Shai Barack
Browse files

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
parent 2ec10472
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -63,14 +63,12 @@ public class ZipFilePerfTest {


    @Test
    @Test
    @Parameters(method = "getData")
    @Parameters(method = "getData")
    public void timeZipFileOpen(int numEntries) throws Exception {
    public void timeZipFileOpenClose(int numEntries) throws Exception {
        setUp(numEntries);
        setUp(numEntries);
        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();
            zf.close();
            state.resumeTiming();
        }
        }
    }
    }