diff options
author | John Reck <jreck@google.com> | 2016-10-12 15:27:52 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-10-13 08:41:35 -0700 |
commit | 62e5fea8554aa61bbf691e8084b8ddd68e69c78e (patch) | |
tree | f80e58e2e5db5ec5b162aaf6cc0482bfb9da8219 /apct-tests/perftests/multiuser | |
parent | ccbc5c183067ae988f57725cfafda855bafa47ec (diff) |
Greatly reduce BenchmarkState overhead
CL reduces BenchmarkState to minimal levels. It also adds
a warmup loop to get things going first before starting measurements.
With this change with clocks /not/ locked on bullhead the test for
RenderNodeJniOverhead is showing a stable (0ns std dev) result
of 54ns, which is approximately the expected amount.
Test: Ran a few perf benchmarks
Change-Id: If01e455884711ebd9cfb89f076efa19dc0b5436d
Diffstat (limited to 'apct-tests/perftests/multiuser')
-rw-r--r-- | apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTest.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTest.java b/apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTest.java index cdbca63fc5fa..88cb8e6c75aa 100644 --- a/apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTest.java +++ b/apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTest.java @@ -57,8 +57,6 @@ import java.util.concurrent.TimeUnit; @LargeTest @RunWith(AndroidJUnit4.class) public class UserLifecycleTest { - private final int MIN_REPEAT_TIMES = 4; - private final int TIMEOUT_REMOVE_USER_MS = 4 * 1000; // 4 sec private final int CHECK_USER_REMOVED_INTERVAL_MS = 200; // 0.2 sec @@ -90,7 +88,6 @@ public class UserLifecycleTest { mAm = context.getSystemService(ActivityManager.class); mIam = ActivityManagerNative.getDefault(); mState = mPerfStatusReporter.getBenchmarkState(); - mState.setMinRepeatTimes(MIN_REPEAT_TIMES); mUsersToRemove = new ArrayList<>(); } @@ -300,4 +297,4 @@ public class UserLifecycleTest { mUsersToRemove.add(userId); } } -}
\ No newline at end of file +} |