diff --git a/.github/workflows/android-perf.yml b/.github/workflows/android-perf.yml index 2ce7570..d542ca0 100644 --- a/.github/workflows/android-perf.yml +++ b/.github/workflows/android-perf.yml @@ -29,8 +29,10 @@ jobs: device: [single-android, 32bit-android] include: - device: single-android + initPerformanceThresholdSec: 1.0 procPerformanceThresholdSec: 1.0 - device: 32bit-android + initPerformanceThresholdSec: 1.0 procPerformanceThresholdSec: 1.0 steps: @@ -67,6 +69,9 @@ jobs: - name: Inject Number of Iterations run: echo numTestIterations="20" >> local.properties + - name: Inject Init Performance Threshold + run: echo initPerformanceThresholdSec="${{ matrix.initPerformanceThresholdSec }}" >> local.properties + - name: Inject Proc Performance Threshold run: echo procPerformanceThresholdSec="${{ matrix.procPerformanceThresholdSec }}" >> local.properties diff --git a/binding/android/FalconTestApp/falcon-test-app/src/androidTest/java/ai/picovoice/falcon/testapp/PerformanceTest.java b/binding/android/FalconTestApp/falcon-test-app/src/androidTest/java/ai/picovoice/falcon/testapp/PerformanceTest.java index 4670a63..ed4fc5d 100644 --- a/binding/android/FalconTestApp/falcon-test-app/src/androidTest/java/ai/picovoice/falcon/testapp/PerformanceTest.java +++ b/binding/android/FalconTestApp/falcon-test-app/src/androidTest/java/ai/picovoice/falcon/testapp/PerformanceTest.java @@ -76,7 +76,6 @@ public void testProcPerformance() throws Exception { String procThresholdString = appContext.getString(R.string.procPerformanceThresholdSec); Assume.assumeNotNull(procThresholdString); Assume.assumeFalse(procThresholdString.equals("")); - double procPerformanceThresholdSec = Double.parseDouble(procThresholdString); Falcon falcon = new Falcon.Builder().setAccessKey(accessKey)