Giter VIP home page Giter VIP logo

Comments (5)

mlykotom avatar mlykotom commented on May 22, 2024

Could you provide more info about the problem you have?

from performance-samples.

yschimke avatar yschimke commented on May 22, 2024

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.

from performance-samples.

yschimke avatar yschimke commented on May 22, 2024

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

from performance-samples.

ChrisCraik avatar ChrisCraik commented on May 22, 2024

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.

from performance-samples.

yschimke avatar yschimke commented on May 22, 2024

Thanks, I'll close then.

from performance-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.