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

Commit 6c566601 authored by Martin Stjernholm's avatar Martin Stjernholm Committed by Android (Google) Code Review
Browse files

Merge "Log a mapping from parameter numbers to combinations." into main

parents 836779f2 fd93ada4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.libcore.regression;

import android.perftests.utils.BenchmarkState;
import android.perftests.utils.PerfStatusReporter;
import android.util.Log;

import androidx.test.filters.LargeTest;

@@ -47,6 +48,8 @@ import javax.crypto.spec.IvParameterSpec;
@RunWith(JUnitParamsRunner.class)
@LargeTest
public class CipherPerfTest {
    private static final String TAG = "android.libcore.regression.CipherPerfTest";

    @Rule public PerfStatusReporter mPerfStatusReporter = new PerfStatusReporter();

    public static Collection getCases() {
@@ -71,6 +74,10 @@ public class CipherPerfTest {
                    }
                    for (int keySize : keySizes) {
                        for (int inputSize : inputSizes) {
                            Log.i(TAG,
                                    "param[" + params.size() + "] = " + mode.name() + ", "
                                            + padding.name() + ", " + keySize + ", " + inputSize
                                            + ", " + implementation.name());
                            params.add(
                                    new Object[] {
                                        mode, padding, keySize, inputSize, implementation