Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Compose release build benchmarks

Sets up a release build to measure Jetpack Compose speed on a real device, so your numbers match what users see.

What we improved

Wired up the Compose Compiler reports command. The original ran ./gradlew assembleRelease -PcomposeCompilerReports=true, but that property does nothing unless the build script reads it. Added the composeCompiler block that sets the report d

Improved by YourAISkill from the original by skydoves, under its Apache-2.0 licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Accurate, focused setup for measuring Compose performance on a profileable R8 release build, with Macrobenchmark code and reporting rules.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Use this skill to ensure Jetpack Compose performance numbers reflect production reality by measuring against a release variant with R8 enabled, Live Literals disabled, and Compose Compiler reports read from the release output directory. Covers why debug builds lie (interpreted Compose runtime, JIT warmup, Live Literals constant-getters), how to set up a release-with-symbols measurement build, and how to wire Macrobenchmark, Compose Compiler reports, Layout Inspector, simpleperf, and Android Studio Profiler against it. Cited result is roughly 75 percent startup gain and 60 percent frame-render gain debug to release. Use when the developer reports "slow startup", "jank", "dropped frames", "high recomposition count", or quotes timings from `assembleDebug`, Layout Inspector, or `CompilationMode.None`. Use when reviewing a perf bug, setting up a CI perf gate, or before filing a perf regression.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: testing-compose-in-release-mode
description: "Use this skill to make Jetpack Compose performance numbers reflect production by measuring a non-debuggable, R8-optimized release (or benchmark) variant on a physical device. Covers why debug builds mislead (debuggable ART runs code without its usual optimizations, Compose is an unbundled library with no AOT or profile until Baseline Profiles, no R8, source information kept), how to set up a benchmark build type with profileable, how to wire Compose Compiler reports, Macrobenchmark (startup and FrameTimingMetric), composition tracing with Perfetto, simpleperf and the Android Studio Profiler against it, and how to report a number so it can be reviewed. Use when the developer reports slow startup, jank, dropped frames or a high recomposition count, quotes timings from assembleDebug, Layout Inspector or CompilationMode.None on a debug app, or is reviewing a perf bug, setting up a CI perf gate, or filing a perf regression."
license: Apache-2.0. See LICENSE for complete terms.
metadata:
  author: Jaewoong Eum (skydoves)
  keywords:
  - jetpack-compose
  - performance
  - release-mode
  - measurement
  - macrobenchmark
  - r8
  - baseline-profiles
  - layout-inspector
  - compose-compiler-reports
  - profiling
---

<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by skydoves. See CHANGES.md. -->

# Testing Compose in Release Mode: Debug Builds Lie About Performance

Compose ships unbundled: its UI toolkit is a library inside your APK, not part of the platform image, so nothing about it is precompiled on the device until a Baseline Profile or background dexopt compiles it. In a debug build it also runs in a debuggable process without R8. Debug startup numbers, debug frame timings and debug recomposition impressions are not what users experience. This skill sets up an honest measurement build before any perf claim is made.

## When to use this skill

- The developer quotes a perf number ("startup is 1.4s", "this composable recomposes 50 times per scroll") that came from a debug build, Layout Inspector, or a benchmark against a debug app.
- The developer is about to file a perf bug, open a regression report, or post benchmark numbers in a PR.
- A CI perf gate is being designed (Macrobenchmark startup or frame-timing budgets, Baseline Profile checks).
- The developer asks "why are my benchmark numbers so much worse than what users see?".
- Compose Compiler stability reports are about to be read and acted on.

## When NOT to use this skill

- Feature development before perf is in scope: debug iteration speed is fine while functionality is being built.
- Behaviour testing (correctness, UI and instrumentation tests): that stays in debug.
- Writing R8 keep rules, generating Baseline Profiles, or interpreting each line of a stability report: those are separate tasks; this skill only makes sure they are measured against the right build.

## Prerequisites
...

From skydoves's repository, Apache-2.0 licence.

Related skills

  • Checked

    Compose UI test setup

    Sets up the right Gradle test dependencies for Jetpack Compose UI tests, so they launch instead of failing early.

    by skydoves 351
    8/101 credit
  • Checked

    Android Gradle Plugin upgrade

    Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    Android Edge-to-Edge Fix

    Makes Jetpack Compose apps draw edge to edge, so buttons, lists and text fields never hide behind system bars.

    by android 11k
    8/101 credit
  • Checked

    Offline Android LLM apps

    Builds an Android app that runs an open LLM on the phone with LiteRT, so it works without a server.

    by android 11k
    7/101 credit
  • Checked

    Android TV Compose Migration

    Moves an Android TV app from old Leanback screens to Compose for TV, with remote control focus that works.

    by android 11k
    7/101 credit
  • Checked

    CometChat Android Chat Setup

    Adds working CometChat chat screens to your Android app in Kotlin or Jetpack Compose, set up in the right order.

    by cometchat 182
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added