# Macrobenchmark

Macrobenchmark is an Android benchmarking library for measuring larger end-user interactions, such as app startup, UI interactions, and animations.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## The Sentry Android SDK is now 20-30% faster!

DevFeed: [The Sentry Android SDK is now 20-30% faster!](<https://devfeed.tech/articles/the-sentry-android-sdk-is-now-20-30-faster-91146.md>)

Original publisher: [Read original article](<https://blog.sentry.io/android-sdk-faster-startup/>)

Author: Nelson Osacky

Published: 2026-10-20T00:00:00Z

Content type: article

Language: en

Sources: [Sentry](<https://devfeed.tech/sources/sentry-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [app startup](<https://devfeed.tech/topics/app-startup.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [build](<https://devfeed.tech/tags/build.md>), [faster](<https://devfeed.tech/tags/faster.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [startup](<https://devfeed.tech/tags/startup.md>), [thread](<https://devfeed.tech/tags/thread.md>), [thread-pools](<https://devfeed.tech/tags/thread-pools.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

Sentry reports that Android SDK initialization measured by `SentryAndroid.init` was 20-30% faster in version 8.54.0 than 8.43.0. The measurement used a synthetic app and does not represent total app startup; customer benchmarks reportedly found similar results, though real-world outcomes vary. Changes included writing manifest options into bytecode at build time so the SDK can skip manifest parsing (6.5% benchmark improvement), replacing `java.net.URI` DSN parsing with a custom parser (up to 6 ms reduced to 1 µs in the benchmark), and reusing shared executor pools instead of creating one-off threads, reducing SDK heap size by 3 MB. The team benchmarked changes with Android Macrobenchmark. To get the improvements, the excerpt specifies Android SDK 8.54.0 or later and Sentry Android Gradle Plugin 6.20.0 or later.

### Source excerpt

Sentry Android SDK 8.54.0 initializes 20-30% faster. See how build-time options, faster DSN parsing, and shared thread pools cut startup cost.

## Preparing your app for broader memory limits

DevFeed: [Preparing your app for broader memory limits](<https://devfeed.tech/articles/preparing-your-app-for-broader-memory-limits-88703.md>)

Original publisher: [Read original article](<https://developer.android.com/blog/posts/preparing-your-app-for-broader-memory-limits>)

Author: Blair Harmon

Published: 2026-08-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [mobile optimization](<https://devfeed.tech/topics/mobile-optimization.md>), [memory price increases](<https://devfeed.tech/topics/memory-price-increases.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [memory pool](<https://devfeed.tech/topics/memory-pool.md>), [adb](<https://devfeed.tech/topics/adb.md>), [Crashlytics](<https://devfeed.tech/topics/crashlytics.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [human-in-the-loop UX](<https://devfeed.tech/topics/human-in-the-loop-ux.md>)

Tags: [adb](<https://devfeed.tech/tags/adb.md>), [android](<https://devfeed.tech/tags/android.md>), [android-15](<https://devfeed.tech/tags/android-15.md>), [android-vitals](<https://devfeed.tech/tags/android-vitals.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [crashlytics](<https://devfeed.tech/tags/crashlytics.md>), [limits](<https://devfeed.tech/tags/limits.md>), [memory](<https://devfeed.tech/tags/memory.md>), [product-news](<https://devfeed.tech/tags/product-news.md>)

### AI overview

Android is expanding per-app memory limits across device RAM configurations, and apps that exceed them may be slowed or terminated. The article explains how zRAM swapping and process termination work, then outlines ways to measure and optimize memory use with Android vitals, Crashlytics, ProfilingManager, and adb commands.

### Source excerpt

A great user experience is central to Android's mission, and delivering on that promise requires keeping devices fast, responsive, and reliable.

## Tuning a Server for Benchmarking

DevFeed: [Tuning a Server for Benchmarking](<https://devfeed.tech/articles/tuning-a-server-for-benchmarking-60982.md>)

Original publisher: [Read original article](<https://david.alvarezrosa.com/posts/tuning-a-server-for-benchmarking/>)

Author: David Álvarez Rosa

Published: 2026-06-25T17:02:00Z

Content type: tutorial

Language: en

Sources: [David Álvarez Rosa](<https://devfeed.tech/sources/david-alvarez-rosa.md>)

Topics: [rapidfireai](<https://devfeed.tech/topics/rapidfireai.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [NUMA](<https://devfeed.tech/topics/numa.md>), [Processor Affinity](<https://devfeed.tech/topics/processor-affinity.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [performance](<https://devfeed.tech/tags/performance.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

The article demonstrates how to reduce noise in microbenchmarks by tuning a server, including pinning the benchmark to a core and locking CPU frequency. It reports that core pinning lowered the measured mean to 55.3 µs and reduced the coefficient of variation to 1.06%.

### Source excerpt

Optimizing code starts with measuring it, and a measurement is only useful if it is repeatable: a 2% improvement is invisible under 5% of noise. Yet on an untuned machine the same binary can easily run several percent faster or slower between runs. In this post we take a tiny benchmark and tune the machine step by step, re-measuring after every change, until runs become deterministic.1 A noisy baseline § Our running example sums an array of doubles, in short bursts. Real services rarely hammer the CPU continuously: they handle a request, sit idle, and wake up for the next one. Each timed iteration here runs a burst of 256 sums after a 2 ms idle gap, with the gap excluded from the measurement2 static auto BM_Sum(benchmark::State& state) -> void { alignas(64) static std::array<double, 4096> data; std::iota(data.begin(), data.end(), 0.0); for (auto _ : state) { state.PauseTiming(); // Idle between bursts, like a real service std::this_thread::sleep_for(std::chrono::milliseconds(2)); state.ResumeTiming(); for (auto i = 0; i < 256; ++i) { auto sum = std::accumulate(data.cbegin(), data.cend(), 0.0); benchmark::DoNotOptimize(sum); } } } BENCHMARK(BM_Sum); Compile it in release with all optimizations, -O3, and -march=native -mtune=native -flto -ffast-math. Then run ten repetitions and aggregate them $ ./benchmark --benchmark_repetitions=10 --benchmark_min_time=100x BM_Sum_mean 99575 ns BM_Sum_stddev 2704 ns BM_Sum_cv 2.72 % The interesting line is cv, the coefficient of variation: standard deviation divided by mean. Almost 3% of run-to-run noise--any optimization smaller than that is invisible. Let's bring it down. Know your hardware § Before turning any knob, look at what you are tuning. lstopo draws the whole machine in one picture: caches, cores, SMT pairs, and the PCIe devices hanging off them. Start with my laptop Figure 1: My laptop (Intel Core Ultra 5 135U). Three kinds of cores: two P-cores with two hardware threads each (dotted), eight E-cores in clusters of four sh

## The real cost of React Native animations: benchmarking every approach

DevFeed: [The real cost of React Native animations: benchmarking every approach](<https://devfeed.tech/articles/the-real-cost-of-react-native-animations-benchmarking-every-approach-80936.md>)

Original publisher: [Read original article](<https://expo.dev/blog/the-real-cost-of-react-native-animations-benchmarking-every-approach>)

Author: Janic Duplessis

Published: 2026-04-28T13:30:00Z

Content type: article

Language: en

Sources: [Expo](<https://devfeed.tech/sources/expo.md>)

Topics: [React Native](<https://devfeed.tech/topics/react-native.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [ios](<https://devfeed.tech/tags/ios.md>), [react-native-animation](<https://devfeed.tech/tags/react-native-animation.md>)

### AI overview

The article benchmarks the per-frame cost of React Native animation libraries, comparing Ease, Reanimated, and RN Animated on real iOS and Android devices.

### Source excerpt

How much does a React Native animation library actually cost per frame? Benchmarks for Ease, Reanimated, and RN Animated on real iOS and Android devices.

## Now in Android #119

DevFeed: [Now in Android #119](<https://devfeed.tech/articles/now-in-android-119-22673.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-119-7b86ad2b3e81?source=rss----95b274b437c2---4>)

Author: Meghan Mehta

Published: 2025-07-09T17:02:38Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [aosp](<https://devfeed.tech/topics/aosp.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apps](<https://devfeed.tech/tags/apps.md>), [camera](<https://devfeed.tech/tags/camera.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [featured](<https://devfeed.tech/tags/featured.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [release](<https://devfeed.tech/tags/release.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Android 16 is available on supported Pixel devices, with source code published in the Android Open Source Project. Highlights include expanded camera and UltraHDR support, progress-style notifications, AGSL runtime color effects, and predictive back previews for three-button navigation. Apps targeting Android 16 must use edge-to-edge layouts; the release also changes system handling of orientation, resizability and aspect-ratio limits. At Google I/O 2025, developer updates included libraries for building adaptive apps across form factors, a redesigned UiAutomator API and other performance tools, plus CameraX, Media3Effects and Google Low-Light Boost for media experiences. The supplied text is an excerpt and does not provide details on the other topics named in the edition's introduction.

### Source excerpt

Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. In this edition we will cover Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! https://medium.com/media/e5e1b0709e27441479904677742b5c3e/hrefhttps://medium.com/media/91590868757d125ca9ea41b7f1260065/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Android 16 is here 🤖 Android 16 is released and available on supported Pixel devices, with new devices to follow. The source code is available at the Android Open Source Project. Key updates include: Enhanced camera and media APIs for pro users, with night mode scene detection, hybrid auto exposure and precise color temperature adjustments. Improved UltraHDR image support with HEIC encoding and an embedded photo picker. Apps targeting Android 16 can no longer opt-out of going edge-to-edge Changes to how the system manages orientation, resizability, and aspect ratio restrictions. System animations for back-to-home, cross-task, and cross-activity by default. In addition, this release extends predictive back navigation to three-button navigation, meaning that users long-pressing the back button will see a glimpse of the previous screen before navigating back. Progress style notifications which lets you create progress-centric notifications that can denote states and milestones in a user journey using points and segments. RuntimeColorFilter and RuntimeXfermode, allowing you to author complex effects like Threshold, Sepia, and Hue Saturation in AGSL and apply them to draw calls. Android 16 is here Top 3 updates for building excellent, adaptive apps at Google I/O '25 🤖 At Google I/O 2025, several advancements were announced for Android, including the rollou

## A script to compare two Macrobenchmarks runs

DevFeed: [A script to compare two Macrobenchmarks runs](<https://devfeed.tech/articles/a-script-to-compare-two-macrobenchmarks-runs-25616.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/a-script-to-compare-two-macrobenchmarks-runs>)

Author: Pierre-Yves Ricau

Published: 2023-09-07T16:36:32Z

Content type: tutorial

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [A/B Testing](<https://devfeed.tech/topics/a-b-testing.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [compare](<https://devfeed.tech/tags/compare.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [compute](<https://devfeed.tech/tags/compute.md>), [confidence](<https://devfeed.tech/tags/confidence.md>), [confidence-interval](<https://devfeed.tech/tags/confidence-interval.md>), [developers](<https://devfeed.tech/tags/developers.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [download](<https://devfeed.tech/tags/download.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [github](<https://devfeed.tech/tags/github.md>), [google](<https://devfeed.tech/tags/google.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [macrobenchmark](<https://devfeed.tech/tags/macrobenchmark.md>), [methodology](<https://devfeed.tech/tags/methodology.md>), [performance](<https://devfeed.tech/tags/performance.md>), [run](<https://devfeed.tech/tags/run.md>), [script](<https://devfeed.tech/tags/script.md>), [spreadsheet](<https://devfeed.tech/tags/spreadsheet.md>)

### AI overview

The Kotlin script helps compare two Jetpack Macrobenchmark runs by applying the article's method: reduce variation until measurements fit a normal distribution with stable standard deviation, then calculate a confidence interval for the difference between means. To use it, install Kotlin, download the script, make it executable, and run it. The author offers it as is, with no guarantees or plans to maintain it.

### Source excerpt

In Statistically Rigorous Android Macrobenchmarks, I laid out a methodology for rigorously comparing the outcome of two Jetpack Macrobenchmark runs. To summarize the article: Remove sources of variations until the distribution fits a normal distribu...

## Statistically Rigorous Android Macrobenchmarks

DevFeed: [Statistically Rigorous Android Macrobenchmarks](<https://devfeed.tech/articles/statistically-rigorous-android-macrobenchmarks-25630.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/statistically-rigorous-android-macrobenchmarks>)

Author: Pierre-Yves Ricau

Published: 2023-05-01T20:57:41Z

Content type: article

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [block](<https://devfeed.tech/tags/block.md>), [ci](<https://devfeed.tech/tags/ci.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [latency](<https://devfeed.tech/tags/latency.md>), [macrobenchmark](<https://devfeed.tech/tags/macrobenchmark.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-evaluation](<https://devfeed.tech/tags/performance-evaluation.md>), [statistics](<https://devfeed.tech/tags/statistics.md>)

### AI overview

The excerpt argues that Jetpack Macrobenchmark results should be analyzed statistically when comparing software changes: comparing a single aggregate such as the minimum, median, maximum, or mean can mislead, and small differences or run-to-run variation make results hard to trust. The author describes tracing Android UI interactions with Trace.beginAsyncSection and measuring durations with TraceSectionMetric, then frames the need for a scientifically sound way to interpret comparisons. Building that analysis infrastructure takes substantial work; the author says a vendor solution may be preferable and reports that Emerge Tools follows a similar approach. The excerpt ends before detailing the proposed analysis method.

### Source excerpt

👋 Hi, this is P.Y., I work as an Android Engineer at Block. As we started evaluating the performance impact of software changes, I brushed up on my statistics classes, talked to industry peers, read several papers, wrote an internal doc to help us i...