summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Felka Chang <felkachang@google.com> 2021-12-28 23:34:07 +0800
committer Felka Chang <felkachang@google.com> 2022-02-14 13:08:39 +0800
commitccb8c015b7fe8c782b4013047bdd7d61cb8d11cf (patch)
treef056328ee6a4a7b74cf411eb927428d50db9be17 /libs/androidfw/ZipFileRO.cpp
parenta83857b9e2c89bb4594846facb39888743a78862 (diff)
Add a benchmark test for Resources.getIdentifier
In order to prevent unstable benchmark results because of cache, a random resource name with an expected value comes from Random.nextInt(10001).The range is from 0 to 10000. This patch creates 10001 color resources with the prefix "i_am_color_%x". The range is from "i_am_color_0" to "i_am_color_2710". The benchmark measures randomly accessing any of those resources. Test: atest --request-upload-result \ CorePerfTests:android.app.ResourcesPerfTest#getIdentifier Bug: 191487225 Change-Id: I357b43fda77e31b6d234233fd902eb8e4696301e
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions