Benchmarks — measured values only
Everything below was measured on 2026-12-01 on the production coordinator (m4mn, Mac mini M4 Pro, internal SSD). No
measurement on a physical iPhone or iPad exists yet: the app had not been installed on a device when this was written.
The device figures that matter most (flash write speed, hashing speed, Wi-Fi throughput, heat) are the ones still missing;
the app measures them itself (Settings → Diagnostics → Storage benchmark) and sends the result to the coordinator, where
mlstore node <name> shows it under bench.
1. End-to-end transfers through the gateway
Client: the app in the iOS simulator on a MacBook, on a university network (not the cluster's LAN). Path: laptop →
Internet → BHS64 (Caddy, Beauharnois) → WireGuard → m4mn on the home connection, and back. Fragments of 8 MiB, 3 parallel
transfers, background URLSession. A simulator is a Mac process: these numbers describe the network path and the
coordinator, not an iPhone.
| Run | Fragments | Volume | Wall time | Aggregate |
|---|---|---|---|---|
| First object, cold connections | 8 | 57.2 MiB | 26 s | 2.2 MiB/s |
| 300 MB object (coordinator restarted during the run) | 36 | 286.1 MiB | 36 s | 7.9 MiB/s |
| Refill after a drain (both objects) | 44 | 343.3 MiB | 50 s | 6.8 MiB/s |
| Second node (iPad simulator), both objects | 44 | 343.3 MiB | 45 s | 7.7 MiB/s |
Per transfer, coordinator → device (43 fragments of 8 MiB): minimum 0.5, median 4.7, maximum 11.4 MiB/s. Device → coordinator (3 fragments of 8 MiB returned): 1.4, 1.9 and 2.8 MiB/s.
All 136 transfers recorded that day completed; every stored fragment passed its possession proof (143 checks at the time of the last run). Downloads from the cluster to a device leave the home connection by its uplink, which is the bottleneck of this path; on the local network path the uplink is not involved — that path was not measured (the test machine was not on the cluster's LAN).
2. Coordinator: fragment size
256 MiB of random data, isolated instance on m4mn, one size per run. Read = decrypt, verify every fragment and the whole object, including the start of the CLI process.
| Fragment size | Fragments | Read back (verified) |
|---|---|---|
| 4 MiB | 64 | 0.44 s |
| 8 MiB | 32 | 0.44 s |
| 16 MiB | 16 | 0.50 s |
| 32 MiB | 8 | 0.55 s |
| 64 MiB | 4 | 0.55 s |
Production ingest observed with 8 MiB fragments: 286.1 MiB encrypted, hashed and written with fsync in 0.7 s. (The ingest timings of the per-size runs were not captured and are not reported.)
Reading: on the coordinator the fragment size makes no practical difference (hundreds of MiB/s either way). The choice
is therefore driven by the device and the network: a smaller fragment loses less when a transfer is interrupted, costs
less to re-verify, and lets a quota fill more finely; a larger one means fewer requests. 8 MiB is the production
setting, chosen on these grounds and not yet confirmed by device measurements. It is a coordinator setting
(MSC_FRAGMENT_MIB, 4–64); changing it affects only objects ingested afterwards.
3. To measure on real devices
Run on each device type and record in this file: the in-app storage benchmark (4 / 16 / 64 MiB: write + fsync, SHA-256, read; thermal state before and after); sustained transfer of 10, 50 and 100 GB with throughput, battery and thermal state over time; local network path against gateway path; background completion rate over a night on power.