Skip to content

why WithPartialCompilationAndDisabledBaselineProfile is the best result in StartupBenchmark #1348

Answered by hxu-wish
hxu-wish asked this question in Q&A
Discussion options

You must be logged in to vote

Here is some reference

https://developer.android.com/reference/androidx/benchmark/macro/CompilationMode

Partial - the default configuration of Partial will partially pre-compile your application, if a Baseline Profile is included in your app. This represents the most realistic fresh-install experience on an end-user's device. You can additionally or instead use Partial.warmupIterations to use Profile Guided Optimization, using the benchmark content to guide pre-compilation. This can mimic an application's performance after background dexopt has partially compiled the app during device idle time, after the app has been used (generally after a day or more of usage after update/install).

sta…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hxu-wish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant