-
Notifications
You must be signed in to change notification settings - Fork 0
feat(benchmark): per-k latency sweep infrastructure + GPU/CPU report #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fd85cd7
feat(benchmark): add --retrieve-k override for per-k latency sweep
nmrenyi 8848bee
feat(benchmark): capture retrieved chunks + response text per run
nmrenyi 33604df
fix(benchmark): update model-file check to match production stack
nmrenyi 197a7bc
feat(benchmark): add --rag-only flag to skip No-RAG mode
nmrenyi 795ac84
fix(benchmark): use suspending delay() instead of Thread.sleep()
nmrenyi 12fd358
fix(benchmark): keep CPU alive through screen-off (PARTIAL_WAKE_LOCK …
nmrenyi 7ac3b36
refactor(benchmark): move benchmark to a foreground service
nmrenyi ef96538
fix(benchmark): record actual backend (GPU/CPU) in config metadata
nmrenyi ede273f
analysis: k-sweep latency report (GPU + CPU on Snapdragon 8 Elite)
nmrenyi 4daf626
analysis: add CPU k=20 — confirms 4096-token wall is backend-invariant
nmrenyi 2a592d2
review: address Copilot feedback on PR #57
nmrenyi 659d3f0
review: explicit None checks in aggregate report formatting
nmrenyi 497d2fc
review: replace THRESHOLD_TS heuristic with explicit allowlist
nmrenyi f372f88
review: document :benchmark process model in service KDoc
nmrenyi e205fdf
review: document retrieve_k=-1 sentinel and other intent-extra defaults
nmrenyi 574601c
review: mark BenchmarkForegroundService dataSync type as dev-only
nmrenyi d3d475c
review: guard aggregate_overall subscripts against empty dicts
nmrenyi e29443e
review: fix wrong survivor count in k=20 narrative (8 → 10)
nmrenyi 57722db
review: reject --retrieve-k 0 (footgun)
nmrenyi 42326ee
review: acquire wake lock in onStartCommand after startForeground
nmrenyi 25a1a42
review: executor.shutdownNow() + brief await to avoid race in onDestroy
nmrenyi 2b5cb9c
review: warn loudly when JSON has no recorded backend
nmrenyi 291725c
review: warn in logcat when both skip_retrieval and rag_only are set
nmrenyi f77effc
review: bump PARTIAL_WAKE_LOCK failsafe from 6h to 24h
nmrenyi 882e738
review: guard against double-start in onStartCommand
nmrenyi 7c2360f
review: use BENCH_TAG for query-failure log
nmrenyi 8cb9712
review: log skipped JSON files in aggregate_k_sweep
nmrenyi f971145
review: derive Methodology text from sample run's config, not hardcoded
nmrenyi 5fa5c6e
review: use statistics.quantiles for p95 instead of int(n*0.95) index
nmrenyi 9ecc54e
review: use STOP_FOREGROUND_REMOVE overload on API 24+
nmrenyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
396 changes: 38 additions & 358 deletions
396
app/android/app/src/main/kotlin/com/example/app/BenchmarkActivity.kt
Large diffs are not rendered by default.
Oops, something went wrong.
564 changes: 564 additions & 0 deletions
564
app/android/app/src/main/kotlin/com/example/app/BenchmarkForegroundService.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.