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

Commit 7b641717 authored by Shai Barack's avatar Shai Barack Committed by Gerrit Code Review
Browse files

Merge "Revert "Don't pause perftest timing while closing ZipFile between iterations"" into main

parents d8c9b4ed b9f8d9a5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();
        }
    }