# Building Android App for Benchmarking

**URL:** <https://discuss.bitrise.io/t/building-android-app-for-benchmarking/22099>\
**Category:** Steps\
**Tags:** step, android, testing\
**Created:** [January 25, 2023, 10:26am UTC](https://discuss.bitrise.io/t/building-android-app-for-benchmarking/22099 "2023-01-25T10:26:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomasvalenta](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@tomasvalenta](https://discuss.bitrise.io/u/tomasvalenta)\
**Post date:** [January 25, 2023, 10:26am UTC](https://discuss.bitrise.io/t/building-android-app-for-benchmarking/22099/1 "2023-01-25T10:26:51Z")

</div>

Hi,

We have recently written android [macrobenchmark](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview) tests for our app. Google has some guidelines on [how to integrate this with a CI](https://developer.android.com/topic/performance/benchmarking/benchmarking-in-ci); unfortunately, but unsurprisingly no mention of Bitrise. However, the key issue is in building the app for UI tests since we need to build the app a little differently than what is provided by [Android Build for UI Testing step](https://github.com/bitrise-steplib/bitrise-step-android-build-for-ui-testing). This step will build two apks with the same module name, for example: `:app:assembleDemoDebug` , `:app:assembleDemoDebugAndroidTest`, but what we actually need for benchmarking is `:app:assembleDemo` and `:macrobenchmark:assembleDemo` as described in [Google’s docs](https://developer.android.com/topic/performance/benchmarking/benchmarking-in-ci) which is currently not possible in this step. I’m not even sure how to build some workaround, so I’ll be happy for any suggestions, thank you.
