{"id":15035577,"url":"https://github.com/android/performance-samples","last_synced_at":"2025-05-14T13:03:48.662Z","repository":{"id":27904623,"uuid":"31396355","full_name":"android/performance-samples","owner":"android","description":"Samples to show APIs and best practices in Performance on Android","archived":false,"fork":false,"pushed_at":"2025-05-13T22:01:32.000Z","size":5438,"stargazers_count":1331,"open_issues_count":10,"forks_count":221,"subscribers_count":104,"default_branch":"main","last_synced_at":"2025-05-14T00:05:35.095Z","etag":null,"topics":["android","performance","samples"],"latest_commit_sha":null,"homepage":"https://d.android.com/topic/performance/overview","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/android.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-02-27T00:39:35.000Z","updated_at":"2025-05-11T11:08:55.000Z","dependencies_parsed_at":"2023-10-02T11:30:21.651Z","dependency_job_id":"7dafe9fc-4712-4784-9e7b-bd1c339a1f51","html_url":"https://github.com/android/performance-samples","commit_stats":{"total_commits":475,"total_committers":31,"mean_commits":15.32258064516129,"dds":0.5578947368421052,"last_synced_commit":"0480a686f87ea8bf242675a33574eca167799539"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fperformance-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fperformance-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fperformance-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fperformance-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/performance-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149838,"owners_count":22022850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","performance","samples"],"created_at":"2024-09-24T20:28:57.941Z","updated_at":"2025-05-14T13:03:48.536Z","avatar_url":"https://github.com/android.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"Android Performance\n===================================\n\nA collection of samples using the performance libraries.\n\nYou can learn more about Android Performance at https://d.android.com/performance.\n\n## [Macrobenchmark sample](MacrobenchmarkSample)\n\nThis sample shows how to use the Macrobenchmark library for testing application startup and runtime\nperformance cases, such as scrolling a `RecyclerView` or `LazyColumn` to measure jank.\n\n**Baseline Profiles** can be generated with the Macrobenchmark library. This sample contains\n[code to generate a baseline profile](MacrobenchmarkSample/macrobenchmark/src/main/java/com/example/macrobenchmark/baselineprofile/).\n\nThe sample also includes a [GitHub workflow](.github/workflows/firebase_test_lab.yml) to run\nMacrobenchmarks on Firebase Test Lab. For more information refer to the [README.md](MacrobenchmarkSample/ftl/README.md).\n\nThe Macrobenchmark sample also demonstrates using [Jetpack Compose with Macrobenchmark](MacrobenchmarkSample/macrobenchmark/src/main/java/com/example/macrobenchmark/frames/FrameTimingBenchmark.kt#L72).\n\n## [Microbenchmark sample](MicrobenchmarkSample)\n\nThis sample shows how to use the Benchmark library to benchmark code and UI from library modules.\n\n### Important Notes\n\n* Make sure your device's screen is on before running benchmarks\n\n## [JankStats sample](JankStatsSample)\n\nThis sample shows how to set up and use the JankStats library to detect janky frames. \n\n## Reporting Issues\n\nYou can report an [Issue with a sample](https://github.com/android/performance-samples/issues) using\nthis repository. If you find an issue with a specific library, report it using the corresponding\nissue tracker link available in the sample README file.\n\n## Additional Resources\n\n[PagingWithNetworkSample](https://github.com/googlesamples/android-architecture-components/tree/master/PagingWithNetworkSample)\n- Example of benchmarking an androidx.paging backed RecyclerView\n\n[WorkManagerSample](https://github.com/googlesamples/android-architecture-components/tree/master/WorkManagerSample)\n- Example of benchmarking asynchronously scheduled background work\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fperformance-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Fperformance-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fperformance-samples/lists"}