omi icon indicating copy to clipboard operation
omi copied to clipboard

omi mobile app performance tests ($300)

Open beastoin opened this issue 11 months ago • 7 comments

Goal: Detect core performance issues — battery usage, memory leaks, CPU load, and responsiveness.

Method: • Run automated performance scripts locally. • Keep Omi devices powered and near the phone. • Execute tests continuously for ~24 hours, then generate reports.

Test Flows: • User sign-in & onboarding • Device pairing/connection • Recording + transcription sessions • Conversation listing/edit/update/delete • Memories & action items interactions • Apps (plugins) usage • Chat interactions

Recommended Tools: • Flutter Integration Tests + flutter_driver / integration_test • Dart DevTools (CPU, memory, leak detection, heap snapshots) • Leak Tracker (Dart/Flutter) for memory leak detection • Android Profiler + Xcode Instruments for battery/CPU benchmarks

beastoin avatar Dec 22 '25 03:12 beastoin

Submitted PR #4734 with a complete performance test suite:

  • 4 Flutter integration tests: memory leak detection, CPU load profiling, responsiveness/jank measurement, battery drain estimation
  • Each test runs the real app in profile mode through repeated navigation cycles
  • Outputs JSON metrics + formatted console results
  • Runner script orchestrates all tests and generates markdown reports
  • Designed for ~24 hour runs to capture stability data

Usage: bash app/scripts/run_performance_tests.sh [device_id]

Iansabia avatar Feb 11 '26 02:02 Iansabia

Project board cleanup: this issue is marked In progress on the project board. @beastoin — is this still actively being worked on? If not, we'll move it to Someday.

beastoin avatar Feb 27 '26 03:02 beastoin

Working on this! Will submit a comprehensive PR with 24-hour performance test suite.

Plan:

  1. Flutter integration_test suite covering all core flows
  2. Real-time monitoring of:
    • Memory usage (heap snapshots, leak detection)
    • CPU load profiling
    • Frame timing (responsiveness/jank)
    • Battery drain estimation
  3. Continuous 24-hour test runner with hourly checkpoints
  4. Comprehensive markdown + JSON reports
  5. Easy local execution: bash app/scripts/run_performance_tests.sh [device_id]

ETA: 24-48 hours

hniane1 avatar Apr 03 '26 22:04 hniane1

Apologies — withdrawing from this one after reviewing the testing requirements more carefully.

hniane1 avatar Apr 03 '26 22:04 hniane1

Submitted PR #6495 with a performance test suite covering memory leak detection and battery drain estimation.

What's included:

  • Memory leak detection via RSS tracking + linear regression trend analysis
  • Battery drain estimation across 5 app states (idle, scroll, chat, typing, rapid nav)
  • 24-hour continuous runner with hourly checkpoint reports (JSON + Markdown)
  • Isolated widget lifecycle stress tests

Looking for a co-contributor with a device — the code passes dart analyze with 0 issues and is structurally complete, but needs on-device validation. If you have an Omi device and want to collaborate on this bounty, comment on the PR!

AI tools used: Claude (Anthropic)

human-pages-ai avatar Apr 09 '26 08:04 human-pages-ai

I have an omi device and a spare phone that I could have the tests run. Would the test require using a specific account or would it be a test account or does it even matter?

pdudas76 avatar Apr 09 '26 17:04 pdudas76

@pdudas76 That would be awesome, thanks for volunteering!

Any account works — the tests just need the app signed in so they can navigate from the home screen. No special or test account needed.

I just pushed fixes for the issues flagged in the PR review (bash compatibility, iOS temp paths, etc.), so it should be cleaner to run now.

Quick start:

git checkout perf-test-suite-3858
cd app
bash scripts/run_performance_tests.sh --quick    # fast smoke test (~5 min)
bash scripts/run_performance_tests.sh --test memory   # just the memory leak test

If anything blows up on device, just paste the error here and I'll fix it. Happy to iterate.

human-pages-ai avatar Apr 17 '26 05:04 human-pages-ai