Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The benchmark setup with release target is unrealistic #93

Closed
yschimke opened this issue Dec 15, 2021 · 5 comments
Closed

The benchmark setup with release target is unrealistic #93

yschimke opened this issue Dec 15, 2021 · 5 comments

Comments

@yschimke
Copy link
Contributor

Seems like useful sample to show both benchmark and release targets.

@mlykotom
Copy link
Contributor

mlykotom commented Feb 7, 2022

Could you provide more info about the problem you have?

@yschimke
Copy link
Contributor Author

yschimke commented Feb 7, 2022

No problem, just a suggestion for the sample.

In the benchmark sample, the build setup uses a release target, which as a sample probably isn't something we would advise developers to follow.

image

https://github.com/android/performance-samples/blob/main/BenchmarkSample/benchmark/build.gradle

The ui module doesn't define any build variants, so presumably just has debug and release.

@yschimke
Copy link
Contributor Author

yschimke commented Feb 7, 2022

@mlykotom apologies for the terrible bug report, I keep forgetting the context I have in my head when I drop a quick bug.

@ChrisCraik
Copy link
Contributor

the build setup uses a release target, which as a sample probably isn't something we would advise developers to follow.

Why do you say this isn't something to advise? Benchmarks are in their own separate module, so it's not necessary to create a new buildType, separate from release. Nothing should ever take a dependency on a release library module that's only used for tests.

For macrobenchmark, what you're saying is true, which is why we recently changed it to use a separate benchmark build type, since it interacts with the app module. Now both match the Studio module template behavior in Bumblebee - release for the (micro)benchmark module, benchmark for the macrobench module.

@yschimke
Copy link
Contributor Author

yschimke commented Feb 7, 2022

Thanks, I'll close then.

@yschimke yschimke closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants