Root-cause analysis tool for on-device ML latency
Root-cause analysis for on-device ML latency.
Jitter reruns your model benchmark under four controlled conditions and tells you why it is slow or inconsistent on a real phone: warmup, thermal throttling, delegate fallback, background load, or a genuine regression.
Status: Alpha release (v0.1.2). Published on PyPI as jitter-ml. Controlled reruns, statistical validation harness, CLI, and report schema v0.1 are implemented. Physical on-device hardware telemetry and field validation are under active development.
A single latency number from a phone benchmark is nearly meaningless:
Existing tools measure well. They do not tell you which of these five things you are looking at. Jitter does.
Each diagnosis is four controlled reruns of the same benchmark:
The outputs are compared statistically and classified:
Each verdict carries a confidence score and the evidence that produced it.
flowchart LR A[Python library + CLI] -- ADB / LAN --> B[Android runner] B -- latency, thermal status, battery temp, executed delegate --> C[(report.json)] C --> D[Static web dashboard] A --> C Python library and CLI (jitter): defines benchmarks, orchestrates the four reruns, computes statistics, classifies the result. Android runner (Kotlin, Jetpack Compose, MVI): runs the model with LiteRT or ONNX Runtime Mobile in a foreground service and logs per-iteration latency, PowerManager thermal status and headroom, battery temperature, and the delegate that actually ran. Web dashboard (Next.js, static): load report files to compare runs and read the verdict. Reports are parsed in the browser. There is no backend, no account and no upload. Usage pip install jitter-ml # run the four controlled reruns on an Android device via ADB jitter run --model mobilenet_v2 --runner adb --serial --output report.json # or generate a synthetic benchmark report jitter simulate --failure-mode thermal_throttling --output report.json # compare two runs statistically jitter compare before.json after.json --run-a 0 --run-b 1 # evaluate root cause on a benchmark report jitter diagnose report.json Example output (simulated):
$ jitter run --model mobilenet_v3.tflite --runner adb --serial pixel-7a --output report.json [1/4] cold vs warm .......... warmup 6 iters, steady-state from iter 7 [2/4] cooldown .............. median 14.1 ms after 240 s rest (was 33.0 ms) [3/4] delegate swap ......... requested GPU, executed GPU, no fallback [4/4] quiet device .......... noise floor +/- 0.4 ms $ jitter diagnose report.json verdict: thermal_throttling confidence 0.93 drift: +2.3x over 90 s (95% CI 2.1 to 2.5x) Planned exit codes for CI: 0 ok, 1 error, 2 regression detected.
The statistics core will be validated against synthetic latency distributions with known ground truth before any real-device claim is made.
{ "schema_version": "0.1", "model": { "name": "mobilenet_v3.tflite", "sha256": "..." }, "device": { "model": "...", "android_api": 34 }, "runs": [ { "rerun": "cold_warm", "delegate_requested": "NNAPI", "delegate_executed": "GPU", "samples_ms": [14.2, 14.0, 13.9], "telemetry": { "thermal_status": [0, 0, 1], "battery_temp_c": [31.2, 31.4, 31.9] } } ], "diagnosis": { "label": "thermal_throttling", "confidence": 0.93, "evidence": [] } } Validation plan The claim that matters is how often the engine names the right cause. The plan:
Emulators are not used: they have no real thermal behavior and no real NNAPI.
Out of scope for now: model conversion, a cloud device farm, user accounts, iOS.
The project is in Alpha (v0.1.1). Issues with ideas, device-specific thermal or delegate quirks, and statistical critique are the most useful contributions right now.
android benchmark latency machine-learning onnx statistics tflite
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




