JITTER / REFERENCE
Introduction
Why single-number benchmarks mislead and how Jitter isolates on-device ML variance.
The Single-Median Fallacy
When an ML model feels slow or inconsistent on an Android device, running a benchmark and recording a single median latency cannot tell you why. On heterogeneous mobile SoCs (CPU, GPU, NPU, DSP), runtime performance is governed by dynamic non-stationary physical processes: thermal throttling, DVFS frequency scaling, driver JIT compilation, kernel fallback, and background scheduling contention.
Two identical benchmark runs showing a 28 ms median can have completely different root causes: one might be a model that runs at 14 ms when cold but slows down under sustained thermal load; another might be a model that silently fell back from GPU to CPU due to an unsupported operator kernel; while a third might be suffering from intermittent background OS process contention.
What Jitter Is and Is Not
Jitter is a root-cause diagnosis engine, CLI, statistics core, and Android wire protocol created by Ayush Dubey. It is designed specifically for ML engineers, on-device runtime developers, and performance teams.
Jitter is NOT a model quantization tool, a cloud device farm, or an OS profiler like Simpleperf or Perfetto. Instead, it serves as the automated reasoning layer that takes repeated physical measurements and classifies the underlying cause with rigorous statistical confidence.
| Diagnostic Mechanism | Physical Distinguishing Signal | Evidence Grounding |
|---|---|---|
| Warmup Drift | Initial iterations exceed steady-state; sharp convergence | CUSUM change-point with ≥ 1 discard iteration |
| Thermal Throttling | Monotonic climb in rolling median; cooldown restores speed | Theil-Sen slope ≥ 0.02 ms/iter with elevated thermal state |
| Delegate Fallback | Step change in median; telemetry reports fallback | Cliff's delta |δ| ≤ 0.147 against CPU baseline |
| Background Noise | Sparse high-latency tail spikes; quiet device eliminates | Quiet mode p99 reduction ratio ≥ 20% |
| Genuine Regression | Uniform degradation across all four controlled reruns | Absence of transient failure modes; Hodges-Lehmann shift |
| Inconclusive | High noise-to-signal or inadequate sample size | Geyer IPS effective sample size n_eff < 30 or N < 15 |
