GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - android/performance-samples: Samples to show APIs and best practices in Performance on Android

BranchesTags
Open more actions menu

Latest commit

 

History

697 Commits
697 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
JankStatsSample
JankStatsSample
 
 
KeepAnnotationsSample
KeepAnnotationsSample
 
 
MacrobenchmarkSample
MacrobenchmarkSample
 
 
MicrobenchmarkSample
MicrobenchmarkSample
 
 
RecompositionTracing
RecompositionTracing
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CODEOWNERS
CODEOWNERS
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pull_benchmark_data.sh
pull_benchmark_data.sh
 
 
pull_traces.sh
pull_traces.sh
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Android Performance

A collection of samples using the performance libraries.

You can learn more about Android Performance at https://d.android.com/performance.

Macrobenchmark sample

This sample shows how to use the Macrobenchmark library for testing application startup and runtime performance cases, such as scrolling a RecyclerView or LazyColumn to measure jank.

Baseline Profiles can be generated with the Macrobenchmark library. This sample contains code to generate a baseline profile.

The sample also includes a GitHub workflow to run Macrobenchmarks on Firebase Test Lab. For more information refer to the README.md.

The Macrobenchmark sample also demonstrates using Jetpack Compose with Macrobenchmark.

Microbenchmark sample

This sample shows how to use the Benchmark library to benchmark code and UI from library modules.

Important Notes

  • Make sure your device's screen is on before running benchmarks

JankStats sample

This sample shows how to set up and use the JankStats library to detect janky frames.

Compose recomposition tracing

A script that records a Perfetto system trace together with Compose composition and recomposition tracing from your app, and merges them into a single file you can open in ui.perfetto.dev.

Reporting Issues

You can report an Issue with a sample using this repository. If you find an issue with a specific library, report it using the corresponding issue tracker link available in the sample README file.

Additional Resources

PagingWithNetworkSample

  • Example of benchmarking an androidx.paging backed RecyclerView

WorkManagerSample

  • Example of benchmarking asynchronously scheduled background work

About

Samples to show APIs and best practices in Performance on Android

d.android.com/topic/performance/overview

Topics

androidperformancesamplesamples

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

1.4k stars

Watchers

98 watching

Forks

254 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.