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

Commit 6d5cbfb0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 25e1e841 891915aa
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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();
        }
    }