@buoy-gg/perf-monitor
v7.0.4
Published
Benchmark React Native performance on device — UI/JS FPS, CPU, memory & jank, with recorded runs you can compare. Part of Buoy devtools.
Maintainers
Readme
@buoy-gg/perf-monitor
Bench — benchmark React Native performance on a real device: UI/JS FPS, CPU, memory, and jank, with recorded runs you can compare to prove what's actually faster.
Part of Buoy — devtools that live inside your React Native app. Install it and it auto-appears in the floating menu from @buoy-gg/core.
Install
npm install @buoy-gg/core @buoy-gg/perf-monitor react-native-reanimated react-native-worklets react-native-performance-toolkit react-native-nitro-modulesBench relies on native peers:
- Required:
react-native-reanimated(>= 4) andreact-native-workletsdrive the UI-thread HUD counters. Addreact-native-worklets/pluginto your Babel config. - Optional but recommended:
react-native-performance-toolkit+react-native-nitro-modulesunlock true native UI-thread FPS, real CPU %, and process memory. These ship native code — rebuild with a dev build (npx expo prebuildthennpx expo run:ios/run:android, pluspod installon bare iOS), not Expo Go. - Without the toolkit, Bench still runs in JS-fallback mode (rAF-based JS FPS, approximated UI FPS, JS heap; no CPU) and shows a one-time notice explaining what's missing.
Requires React Native >= 0.76.
Quick start
import { FloatingDevTools } from "@buoy-gg/core";
export default function App() {
return (
<>
<YourApp />
<FloatingDevTools />
</>
);
}Bench appears in the floating menu: one entry toggles the live HUD, another opens the recorder/report modal. On web (Expo web, Electron, any React DOM app) no native modules are needed — render the HUD directly:
import { PerfMonitorOverlay, PerfMonitorController } from "@buoy-gg/perf-monitor";
<PerfMonitorOverlay />; // anywhere in your tree
PerfMonitorController.toggle(); // show/hideWhat you get
- Live HUD on a real device — UI FPS, JS FPS, CPU, memory, and jank updating in real time as you use the app; the HUD reads UI-thread shared values, so it keeps moving even when JS is fully blocked.
- Record and compare runs — capture a session, save it, then select saved runs to compare side-by-side (duration, memory, JS FPS, CPU) and prove a change made things faster.
- Batch benchmarks — run the same flow across several implementation variants and get a ranked report with per-metric leaders and at-risk flags.
- Render capture — with
@buoy-gg/highlight-updatesinstalled, recordings capture per-component render counts and durations, so reports say "case B dropped to 41 JS FPS becauseProductListrendered 47× costing 312ms" instead of just the number. - AI-driven optimization — the MCP server's
run_benchmark_batchtool andbuoy-optimizewizard let your AI assistant measure on-device, apply a change, and re-measure in a loop. - Web mode — rAF frame rate, a BUSY long-task % (the "why does it feel janky" number), JS heap, and a PAGES section that ranks your slowest routes by FPS.
Desktop & AI
The same live session streams to Buoy Desktop (free, macOS/Windows/Linux) — including a live HUD with Start/Stop recording — and to Claude Code or Cursor via the Buoy MCP server.
Free vs Pro
Every tool is free. Pro unlocks production builds, the MCP server, and unlimited capture. Every weekend, Pro features unlock free for everyone.
Proprietary software. © Buoy LLC. Terms
