Tech-Explique-Moi -- Phase B Dashboard

CPU Execution Optimization on Google Pixel 7 (Tensor G2)

This dashboard reports Phase B measurement results: execution-time optimization of a fixed local AI inference workload (Gemma 4 E2B via LiteRT-LM) on the Pixel 7's heterogeneous 2+2+4 core CPU. Two levers are tested sequentially: Lever 1 sweeps the runtime's CPU thread-count configuration to find the fastest setting; the winning configuration is then re-measured before Lever 2 tests whether disabling the XNNPACK weight cache changes the result further, at that same winning thread count. All results are for this specific device and workload -- not generalized to other Arm devices.

Step 1: CPU Thread-Count Sweep (Lever 1)

Heterogeneity caveat: results reflect the combined effect of the configured thread count and Android's (unobserved) scheduling decisions across the Tensor G2's heterogeneous 2+2+4 cores. No claim is made about which specific cores executed each configuration's threads.
Current leader: threads_4 -- 24.874s median latency, 1.188x speedup vs. baseline.SIGNALVERIFIED
Replicated: ranking held, direction consistent. ROBUST.

Results Table

configthreadsnmedian(s)mean(s)sd(s)min(s)max(s)speedupreduction(%)decode(tok/s)cpu(%)peak RSS(MB)
baselineauto3029.56127.7113.98119.77132.881.0x0.011.61283.72214.0
threads_113037.00738.2696.76129.16752.4790.799x-25.27.496.72162.7
threads_223028.25227.354.25221.47934.0811.046x4.411.03166.12236.3
threads_443024.87424.3082.12318.33726.7831.188x15.912.98284.52230.9
threads_883030.03829.8521.86726.2532.8110.984x-1.610.02499.82130.1

Robustness Replication

ConfigurationOriginal median (s)Replication median (s) Original speedupReplication speedupRanking holds Same order of magnitudenVerdict
threads_4 24.87420.682 1.188x1.429x TrueTrue 10 ROBUST

Engineering Analysis

Step 2: Weight Cache Configuration (Lever 2)

Tested only at the Lever 1 winning thread count (threads_4), per the sequential two-lever design documented in OPTIMIZATION_PARAMETERS.md. Compares the winning configuration (cache in memory) against the same thread count with the weight cache disabled.

Results Table

configthreadsnmedian(s)mean(s)sd(s)min(s)max(s)speedupreduction(%)decode(tok/s)cpu(%)peak RSS(MB)
threads_443024.87424.3082.12318.33726.7831.0x0.012.98284.52230.9
threads_4_nocache-3038.17738.2582.28932.61342.0090.652x-53.59.19214.54017.4

Engineering Analysis