17 Commits

Author SHA1 Message Date
TreeHugger Robot
98e10b829d Merge "Add 90th and 95th percentile to ManualBenchmarkState" 2018-02-22 02:14:07 +00:00
Arthur Eubanks
3ffc6e7e0f Add 90th and 95th percentile to ManualBenchmarkState
Test: m ActivityManagerPerfTestsTestApp ActivityManagerPerfTests
Test: adb install \
$OUT/data/app/ActivityManagerPerfTestsTestApp/ActivityManagerPerfTestsTestApp.apk
Test: adb install \
$OUT/data/app/ActivityManagerPerfTests/ActivityManagerPerfTests.apk
Test: adb shell am instrument -w -e class \
com.android.frameworks.perftests.am.tests.BroadcastPerfTest \
com.android.frameworks.perftests.amtests/android.support.test.runner.AndroidJUnitRunner

BUG: 67460485
Change-Id: I3da7079758b0f8c123d354780f310f357886543c
2018-02-08 09:23:32 -08:00
Arthur Eubanks
8e44df2722 Add perf tests for PendingIntent
Test: m CorePerfTests
Test: adbi "$OUT"/data/app/CorePerfTests/CorePerfTests.apk
Test: adb shell am instrument -w -e class \
android.app.PendingIntentPerfTest \
com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner

BUG: 67460485

Change-Id: I45bfc694454b466041d81e37a9010d58c170a4d3
2018-02-06 16:10:17 -08:00
Arthur Eubanks
263d674d59 Add performance test for BroadcastReceiver
This is intended to be the first of multiple performance tests around
ActivityManager.

This also refactors some of the existing performance utils so that a
BenchmarkState which accepts the elapsed time rather than measures it
can be added (ManualBenchmarkState).

This test measures the current time, sends a Broadcast, the target APK
receives it, measures the current time, and sends its measured time
back to the test APK.

Test: m ActivityManagerPerfTestsTestApp ActivityManagerPerfTests
Test: adb install $OUT/data/app/ActivityManagerPerfTestsTestApp/ActivityManagerPerfTestsTestApp.apk
Test: adb install $OUT/data/app/ActivityManagerPerfTests/ActivityManagerPerfTests.apk
Test: adb shell am instrument -w -e class \
com.android.frameworks.perftests.am.tests.BroadcastPerfTest \
com.android.frameworks.perftests.amtests/android.support.test.runner.AndroidJUnitRunner

Bug: 67460485

Change-Id: Ib1606ff60c6a845088bde5bd1a33294765b88b36
2018-01-12 09:54:13 -08:00
John Reck
24e98b7667 Add more complex View inflation bench
Test: ran ViewPerfTest#testTwelveKeyInflate

Change-Id: I644e1f77fa1108dcd2d54216d1e740b112a2e21b
2016-11-17 09:03:31 -08:00
John Reck
3acf0382da Add benchmarks for View inflation
Also speed up RenderNode creation:

Use finalizer() instead of NativeAllocationRegistry, this
shaves ~3us off of creation currently

Avoid instanceof, instead have SurfaceView explicitly ask
for updates.

Remove unused method call.

Test: ran benchmarks
Change-Id: I3117fdf72313a4e6a9965baca9f2a8b855c19b34
2016-11-02 14:49:51 -07:00
John Reck
c1d6ba4053 Fix pause/resume timing
Test: run SystemPerfTest#testPauseResumeOverhead

Change-Id: Icc34355e29f3a6ba8f7d73a904bf549d2685eee4
2016-10-17 13:49:16 -07:00
John Reck
62e5fea855 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
2016-10-13 08:41:35 -07:00
Teng-Hui Zhu
578f47149d Switch APCT Perf test to JUnit 4.11 friendly
b/31928255

Test: run LayoutPerfTest VectorDrawablePerfTest before and after the change
      data is consistent.

Change-Id: I30de1f09b1df571479009048d621fef57b94f316
2016-10-11 15:39:05 -07:00
Sudheer Shanka
53c23fdd5c Add usermanager related perf tests - part1
Bug: 30948225
Change-Id: I0668a012435e9954729e5085fdb4b1f5ce422d97
2016-08-19 16:36:23 -07:00
Tenghui Zhu
19c6ae310c Merge "Add layout perf test into APCT" 2016-07-12 20:41:59 +00:00
Teng-Hui Zhu
a9cebd628c Add layout perf test into APCT
Change-Id: I32971176cdf60e8848180f2c923ca2f88fc19e4d
2016-07-12 10:52:49 -07:00
Seigo Nonaka
2a154e2940 Introduce backspace benchmark tests.
Bug: 29142734
Change-Id: I186a2019e883881ee8001848f4ae2076ed551f5b
2016-07-07 15:50:26 +09:00
Teng-Hui Zhu
119265d05e Use new Rule to report status when success
b/28980976

Change-Id: Ib5e718ca8bfa2753eedcc40d41843f202c8c23cb
2016-06-27 14:07:00 -07:00
Teng-Hui Zhu
57fc7599e8 Update VectorDrawablePerfTest to use JUnit 4
Merge StubActivity into utils.
b/28980976

Change-Id: I2ea53d5b6e3e508b2f83846940dc617f1fdff248
2016-06-22 15:43:45 -07:00
Teng-Hui Zhu
4cbaff6be1 Create BitmapUtils class for performance apct tests
b/28980976

Change-Id: I3c625f336b6e89352b3906244479da184858cc83
2016-06-22 14:11:37 -07:00
Teng-Hui Zhu
23d1fdded5 Refactor the java side APCT perf test
Relocate everything into apct-tests/
Setup the share static java lib for the common code and use it.

b/28980976

Change-Id: I74c80c0b54ad18ee5fc44da43249d3c88fb926e2
2016-06-21 16:11:31 -07:00