TgWitness / Documentation

Repository / docs/EXPORT-BENCHMARK-2026-11-29.md

Distributed export with one, four and eight accounts: 29 November 2026

TgWitness / Documentation · Evidence and verification

Evidence & verification

The same public group was exported with one, four and eight accounts on one server to measure how a distributed export scales with the number of accounts and whether the result depends on it. Two fixed date windows were used: six months (8,292 messages) and three years (231,990 messages). A batch of fourteen public sources then went through Swarm export, and the full history of a second public group (493,547 messages) was exported with eight accounts.

Every archive verified with the standalone verify.py against a fingerprint retained separately. All runs of a window contain the same message IDs. An independent traversal with a separate Telegram client matched all 805,465 messages it compared, field by field.

Source names, chat IDs and message ID ranges are not published. Raw chat data and account credentials are not in the repository.

Setup#

Item Value
Server Linux (Ubuntu 24.04.5), 4 vCPU AMD EPYC, 8 GB memory, local disk
Software TgWitness 1.0.2 with the changes of 29 November (verification record); Python 3.12.16, Telethon 1.45.0, layer 229
Accounts Eight Telegram accounts dedicated to tests, each in its own workspace of one panel; the same lead account in every run
Network Telegram traffic of each workspace through its own WARP route
Scope Text and metadata; attachments off; regular requests, not Takeout; no chats joined, no messages sent
Order One export at a time, 30 seconds between runs

Speed#

Acquisition time is the time the accounts spent reading history, including Telegram waits, page writes and receipt signing. Messages per second is new messages divided by acquisition time; this is the figure the panel and the status API report. The whole job runs from the start request until the archive is ready, including preparation, selection and packaging.

Window Accounts Order Messages Acquisition Messages/s Whole job
Six months 1 1 8,292 100.3 s 82.7 111.1 s
Six months 4 2 8,292 29.6 s 280.1 47.0 s
Six months 8 3 8,292 15.4 s 540.0 26.8 s
Six months 1 4 8,292 88.3 s 93.9 96.1 s
Three years 8 1 231,990 341.7 s 679.0 415.9 s
Three years 1 2 231,990 2,719.7 s 85.3 2,791.4 s
Three years 4 3 231,990 690.0 s 336.2 765.8 s
Three years 8 4 231,990 352.5 s 658.1 426.3 s

On the three-year window, four accounts acquired 3.94 times and eight accounts 7.96 times as fast as one. On the six-month window the gain was smaller (3.39 and 6.53 times) because the work per account was short. The repeated one-account run on that window was 13.6% faster than the first; the repeated eight-account run on the three-year window was 3.1% slower than the first. Single runs on a shared network, not averages: treat differences of about 15% as noise.

For 231,990 messages, selection took 16–17 seconds, packaging 52–54 seconds and the ZIP was 46.9 MB; the standalone verifier needed 6.2 seconds. These parts do not depend on the number of accounts, so they shorten the gain on whole-job time.

Swarm batch#

Fourteen public channels and groups were pasted into Swarm export (Swarm → Swarm export in the panel) at once. The free accounts took them from one queue; each source went to one account, which exported its whole history into its own workspace. Accounts that were observing chats were paused for the run, because Swarm gives observing accounts no task.

Thirteen sources finished in 1,152.7 seconds with 79,480 messages; every archive verified against the fingerprint of its workspace. The largest source, 60,972 messages, took 1,111 seconds on one account and set the length of the batch; the other twelve finished within 202.5 seconds. Swarm does not split one chat across accounts; for a large chat use a distributed export.

The fourteenth source went to a workspace whose Telegram session had ended before the panel restarted. The task failed with a bare ValueError instead of moving to one of the free accounts. This was a defect: after a restart the workspace was not marked as signed out, so Swarm offered it work and it connected with the ended session. It is fixed in the same changes: such a workspace starts as signed out and receives no task, and a sign-out found while connecting hands the chat to another account. After the fix, the same source went to a free account and finished in 26.1 seconds with 448 messages; the signed-out workspace was shown as unavailable and made no connection.

Full history of a second group#

The whole visible history of a second public group, 493,547 messages, was exported with eight accounts. Acquisition took 741.5 seconds at 665.6 messages per second, selection 142.2 seconds and packaging 96.4 seconds; the whole job took 985.4 seconds (16.4 minutes). The archive verified and contains no duplicate ID.

Integrity#

  • Same result for any number of accounts. All runs of a window produced the same set of message IDs (equal SHA-256 of the sorted ID list) and no duplicate ID.
  • Independent traversal. A separate Telethon client, not TgWitness code, read the same ID range with messages.getHistory and compared date, text, sender, reply, edit time, media type and service action. In the three-year window, 231,990 of 231,990 messages were identical; in the fourteen Swarm sources, 79,928 of 79,928; in the full history of the second group, read by three clients over thirds of the ID range, 493,547 of 493,547. No message was missing on either side, and no message was edited between the export and the traversal.
  • Signed parts. Each account signs its own ranges. A copy in which the holder of the lead key changed one message in another account's range and re-signed the manifest was refused with Messages … differ from what the account signed; a part re-signed with the lead key instead of the account's key was refused for its signature; the same archive rebuilt and re-signed without changes verified.
  • Changed copies. For each file of the one-account and four-account archives, a copy with one changed byte, a copy without the file, a copy with an extra file and a copy with a duplicate manifest were made: 100 copies, all refused, none with a traceback.

Limits#

  • One server, one network route type and eight accounts. Ten or more accounts were not measured; do not extrapolate the eight-account rate.
  • Telegram response times vary over the day; runs were sequential and not repeated enough for averages.
  • Text and metadata only. Attachment download, Takeout and accounts that are busy with other work were not measured.
  • The independent traversal also reads Telegram's API; it is not a comparison with a Telegram Desktop export.
  • Earlier qualification with 40 accounts and 48 sources: 6 November 2026.