Repository navigation
Memory and speed
What each level costs: speed on one core, and peak memory, for streams (c, d), archives (a, x) and the password's key. syc 0.10.2, 2026-11-16, measured with bench/modest.sh. Peak memory is syc's own --stats: the process's peak resident set (Linux VmHWM, Windows PeakWorkingSetSize).
The data is silesia.tar (212 MB) for the streams, and silesia/ (its 12 files) for the archives. The platforms:
| where | binary | what it shows | |
|---|---|---|---|
| x86-64 | Linux, one core (taskset) of a Xeon E5-2697A v4 (Broadwell, 2016, 2.6 GHz) |
release, assembler + C | speed and memory |
| i386 | the same core, a 32-bit Linux build | release, C (no assembler) | 32-bit speed and memory |
| win32 | Windows 7 SP1 x64, 8 vCPU under KVM on the same Xeon; the 32-bit .exe (WoW64) |
release | Windows memory, and speed with more cores |
| arm64 | Debian 13 arm64, emulated (QEMU TCG); 58 MB of silesia | release, C | memory only: emulated, its speeds mean nothing |
Speeds are on a 2016 server core; on an older or smaller CPU, scale them down. The ratios between levels hold. Memory does not depend on the CPU.
-
Streams (
c,d) with one thread: about 15 MiB to compress and 10 MiB to decompress, at every level,-ecincluded. Memory follows the block size (-b, default 4 MiB), not the level or the file's size. -
Archives with one thread: about 70–85 MiB for
syc a, 25–30 MiB forsyc x(16 MiB blocks). With-b 4: 52 and 10 MiB; with-b 1: 34 and 5 MiB. -
Each thread adds about two blocks in flight. With
-t Nthere are 2·N jobs, each with a block and its compressed form. At 16 MiB blocks:a -t 4uses about 260–330 MiB,x -t 4about 180 MiB. On a machine short of memory, use fewer threads or a smaller-b. -
The key (encrypted files) takes what
--kdf-memsays (default 64 MiB), once, before the data. Reading takes whatever the file's writer chose, up to--kdf-mem-max(default 1024 MiB). -
32-bit costs 20–35% in speed (no assembler, fewer registers): it decompresses at 700–1000 MB/s and compresses
-1at 240 MB/s. Memory is the same as on 64-bit.
syc c -t 1 -N and syc d -t 1, silesia.tar, 4 MiB blocks. MB/s are of the raw data (in for c, out for d).
| level | ratio | c MB/s x86-64 | c MB/s i386 | c MB/s win32 | d MB/s x86-64 | d MB/s i386 | d MB/s win32 | c MiB | d MiB |
|---|---|---|---|---|---|---|---|---|---|
| -0 | 44.68% | 350 | 251 | 199 | 1192 | 997 | 872 | 13–17 | 8–12 |
| -1 | 42.86% | 338 | 242 | 182 | 1203 | 990 | 725 | 13–16 | 8–12 |
| -2 | 39.41% | 219 | 153 | 143 | 1160 | 922 | 602 | 13–16 | 8–12 |
| -3 | 38.63% | 187 | 132 | 115 | 1166 | 935 | 677 | 13–16 | 8–12 |
| -4 | 37.53% | 88 | 67 | 62 | 1179 | 944 | 738 | 13–17 | 8–12 |
| -5 | 36.63% | 65 | 50 | 47 | 1168 | 945 | 687 | 14–16 | 8–12 |
| -6 | 36.05% | 50 | 37 | 35 | 1095 | 914 | 675 | 14–16 | 8–12 |
| -7 | 35.70% | 38 | 29 | 27 | 1129 | 903 | 687 | 14–16 | 8–12 |
| -8 | 35.41% | 24 | 18 | 18 | 1150 | 924 | 702 | 13–16 | 8–12 |
| -9 | 34.97% | 7.8 | 5.8 | 5.6 | 1190 | 1018 | 716 | 15–20 | 8–12 |
| -10 | 34.96% | 7.0 | 4.9 | 4.7 | 1273 | 981 | 883 | 14–18 | 8–12 |
| -ec -0 | 37.23% | 204 | 138 | 129 | 1085 | 701 | 650 | 13–16 | 8–11 |
| -ec -1 | 36.55% | 174 | 116 | 104 | 1065 | 702 | 519 | 14–16 | 8–11 |
| -ec -2 | 35.41% | 84 | 64 | 58 | 1069 | 719 | 640 | 14–16 | 8–11 |
| -ec -3 | 34.58% | 63 | 49 | 44 | 1066 | 751 | 680 | 14–16 | 8–11 |
| -ec -4 | 34.04% | 48 | 38 | 35 | 1107 | 771 | 671 | 13–16 | 8–11 |
| -ec -5 | 33.71% | 39 | 31 | 26 | 1073 | 744 | 671 | 14–16 | 8–11 |
| -ec -6 | 33.44% | 24 | 19 | 18 | 1079 | 726 | 513 | 15–16 | 8–11 |
| -ec -7 | 32.86% | 8.0 | 5.7 | 5.6 | 1154 | 783 | 560 | 14–17 | 8–11 |
| -ec -8 | 32.85% | 6.8 | 4.9 | 4.8 | 1103 | 740 | 580 | 14–17 | 8–11 |
| -ec -9 | 32.44% | 5.2 | 3.7 | 3.6 | 1098 | 707 | 544 | 14–17 | 8–11 |
| -ec -10 | 32.43% | 4.8 | 3.3 | 3.2 | 1095 | 707 | 556 | 14–17 | 8–11 |
The memory columns give the range over x86-64, i386, win32 and arm64. Windows counts a little more (its working set includes the loaded DLLs). On win32 the VM's clock and timer make speeds approximate: compare its columns with each other.
-t N keeps 2·N blocks in flight. x86-64, silesia.tar, 4 MiB blocks:
| -t 1 | -t 2 | -t 4 | -t 8 | |
|---|---|---|---|---|
c -1 MiB |
14 | 47 | 89 | 162 |
d MiB |
10 | 30 | 55 | 102 |
syc c -b N -t 1, peak MiB (x86-64; i386 and arm64 within a few MiB). About 3.5 blocks to compress, 2.5 to decompress:
| level | -b 1 | -b 4 (default) | -b 16 | -b 64 |
|---|---|---|---|---|
| -1 | 5.1 | 13.5 | 38.4 | 124.7 |
| -5 | 5.6 | 14.0 | 35.1 | 115.9 |
| -9 | 6.5 | 14.8 | 39.8 | 116.1 |
| -ec -9 | 6.0 | 16.8 | 36.6 | 115.3 |
The optimal parser of levels 9–10 adds a few MiB, not a multiple of the block.
syc a -t N of silesia/ into a new archive, then syc x -t N of it. 16 MiB blocks (the default). Peak MiB:
| level | threads | a x86-64 | a i386 | a win32 | a arm64* | x x86-64 | x i386 | x win32 | x arm64* |
|---|---|---|---|---|---|---|---|---|---|
| -1 | 1 | 72 | 82 | 77 | 70 | 28 | 28 | 30 | 27 |
| -1 | 2 | 160 | 171 | 163 | 153 | 102 | 102 | 104 | 82 |
| -1 | 4 | 267 | 295 | 269 | 160 | 188 | 188 | 190 | 82 |
| -5 | 1 | 69 | 77 | 74 | 68 | 27 | 27 | 29 | 25 |
| -9 | 1 | 74 | 78 | 75 | 70 | 27 | 27 | 29 | 25 |
| -9 | 4 | 272 | 284 | 260 | 164 | 178 | 178 | 180 | 78 |
| -ec -9 | 1 | 84 | 79 | 74 | 70 | 26 | 26 | 29 | 24 |
| -ec -9 | 4 | 328 | 289 | 260 | 163 | 175 | 175 | 177 | 76 |
* arm64 archived 58 MB (four blocks), too little to fill four threads.
syc a also keeps three 8 MiB read buffers for hashing, so -b 1 still takes 34 MiB (x: 5 MiB). With -b 4, a takes 52 MiB and x 10 MiB.
Time on 8 cores (win32, Windows 7): a -9 takes 39 s with one thread, 20 s with two and 11 s with four; x takes 1.2, 0.7 and 0.5 s. Archives written with any -t are the same bytes.
syc t -p of a small encrypted stream: Argon2id with t = 3 and one lane, at --kdf-mem MiB:
| --kdf-mem | x86-64 | i386 | arm64 (emulated) | peak MiB |
|---|---|---|---|---|
| 8 | 0.02 s | 0.05 s | 0.27 s | 10 |
| 64 (default) | 0.18 s | 0.43 s | 1.37 s | 66 |
| 256 | 0.75 s | 1.79 s | 5.45 s | 258 |
The key is made once per file, before any data. On a machine with little memory, --kdf-mem 16 or 32 when creating keeps it small. The cost to an attacker shrinks in proportion.
The Windows binaries need Windows 7 or later: they call BCryptGenRandom (bcrypt.dll) for the random numbers of encryption, and CreateSymbolicLinkW, neither of which Windows XP has. On XP they do not start.