Shrinking sensor data: the biggest win isn't the codec
What each encoding saves, what it costs to write and to read, and where the trade-offs turn — including the one change that moves more bytes than any codec: storing whole numbers instead of floats.
Updated 20 November 2026. Re-measured on dedicated x86 and Arm machines, with decode times, more encodings, float32 and whole-file storage added. Two earlier figures were corrected; see the end of the post.
One test rig with 192 channels at 100 kS/s produces 19.2 million samples a second. As 64-bit floats, that is 1.2 Gbit/s. We measured how far the common encodings shrink it, what each costs to write and to read, on x86 and on Arm, and where one choice starts to beat another. The largest single saving did not come from a codec. It came from storing the converter's whole numbers instead of floats.
What you store matters more than how you compress it
Keeping a sensor's whole numbers in plain Parquet took 19.2 million samples a second from 1.2 Gbit/s to 188 Mbit/s.
Codes or floats →1.5×Specialised compressors save a little and cost real CPU
On whole numbers they were at most 1.5 times smaller than plain Parquet, for four to eight times the CPU.
CPU →1.8×Floats are harder, and the best tool depends on their origin
The best specialised compressor beat the best standard one by 1.8 times on floats.
Bytes →< 8 nsReading back is cheap either way
Every format decoded in under 8 nanoseconds a sample. The costs differ in writing.
CPU →Codes or floats#
A sensor's converter outputs a whole number: 12, 16 or 24 bits. Software scales it to volts or bar, and usually stores the result as a 64-bit float. The float holds nothing new. But its extra digits look like noise, and noise does not compress. The alternative is to keep the whole number and its scale.
This is not a new idea. Automotive measurement files have long stored raw values beside a conversion rule, and scientific formats such as netCDF have a scale-and-offset convention for the same reason. What is rarely measured is how much it saves with today's columnar formats and compressors.
To see how much this matters, we digitised one signal at five resolutions, with the same noise each time, and stored it both ways.
One signal digitised at five resolutions. Bytes per sample, 10,000-sample chunks; lower is better.
| Converter | Codes · Parquet delta | Codes · pco L8 | Floats · best standard | Floats · pco L8 |
|---|---|---|---|---|
| 8 bits | 0.05 | 0.03 | 0.13 | 0.13 |
| 12 bits | 0.17 | 0.17 | 1.58 | 0.41 |
| 16 bits | 0.65 | 0.61 | 6.08 | 1.49 |
| 20 bits | 1.17 | 1.11 | 6.08 | 5.51 |
| 24 bits | 1.67 | 1.61 | 6.09 | 5.59 |
best in the row within 10% of the best – not run, or does not apply. Synthetic sine at 70% of full scale; Gaussian noise fixed at 3 least significant bits of a 16-bit converter, so finer converters resolve more of the same noise. Floats are the codes times a calibration-style gain and offset.
As codes, every four extra bits cost half a byte: exactly those four bits. Once a converter is fine enough to see the noise, more resolution is just more noise. As floats, the standard encodings give up at 16 bits (6.08 bytes out of 8). pco still finds the converter's steps at 16 bits (1.49), but not at 20 or 24 (5.5). From 20 bits up, codes are 3.5 to 5 times smaller than floats, whatever the codec.
Real recordings, all of 16 bits or fewer, show a smaller gap. Across 12 public recordings at 10,000-sample chunks, codes took 1.20 bytes a sample on standard Parquet and the floats 2.22 on the best standard choice: 1.8 times more on average, and between 1.1 and 3.1 times from one recording to the next. With pco on both sides the gap was 1.4 times.
The same samples cost less as codes, whichever codec carries them
Bytes per sample for the same converter output, as integer codes or as scaled 64-bit floats
What it does at the edge#
Simulated acquisition devices at the edge. Lower is better.
| Measure | Codes + pco | Floats + pco | Floats + Arrow IPC + zstd |
|---|---|---|---|
| Edge CPU, whole acquisition process (ns per sample) | 244–246 | 324–330 | 437–441 |
| On the wire (bytes per sample) | 1.56 | 2.44 | 3.69 |
| Stored, two 24-bit converters (bytes per sample) | 2.36, 2.48 | 6.42, 6.77 | – |
| Stored, 16-bit converters (bytes per sample) | 0.98–1.48 | 0.98–1.50 | – |
Six simulated acquisition devices with 16- and 24-bit converters, 80 channels, 2.9 million samples a second, on an 8-core AMD EPYC 7B12; three rounds of 180 seconds. CPU is the whole process: reading the devices, encoding and sending. The codes reproduced every scaled value exactly, and no sample was lost.
With the same codec, codes cut the acquisition process's CPU by a quarter and the wire bytes by a third. From 24-bit converters the floats also took 2.7 times the space in storage; from 16-bit converters, no more. The devices were simulated, so treat the bytes as a guide.
A float computed from a code and a known scale can be rebuilt exactly from the two. In our edge test every scaled value came back bit for bit.
And float32?#
Halving the float is the other common shortcut. It is lossy, so we measured both what it saves and what it loses.
12 public recordings, bytes per sample, 10,000-sample chunks.
| Encoding | 64-bit floats | 32-bit floats | Integer codes |
|---|---|---|---|
| Parquet dictionary + zstd-1 | 2.23 | 1.94 | 1.72 |
| Parquet PLAIN + zstd-1 | 2.56 | 2.33 | 1.60 |
| Arrow IPC + zstd-1 | 2.58 | 2.35 | 1.36 |
| Parquet byte-split + zstd-1 | 5.36 | 2.57 | 1.29 |
| pco L8 | 1.32 | 1.74 | 0.95 |
| Vortex compact | 1.24 | 1.68 | 0.95 |
32-bit floats are the 64-bit values cast down, then encoded losslessly. Codes use the same encoding; Parquet's delta encoding on the same codes takes 1.22.
Float32 saved about a tenth with the standard encodings, and made pco and Vortex worse: the cast blurs the exact steps they find. On every public recording the cast moved values by under a thousandth of a converter step, so rounding back to the nearest step recovered the original exactly. A 24-bit converter is at the edge of what float32 holds: our synthetic one came within 0.2 of a step. Codes were smaller than either float with every encoding.
The encodings, in plain words#
Most encodings reshape the numbers into something regular, then let a general compressor, usually zstd or LZ4, squeeze the result.
- Delta encoding stores the difference between each sample and the one before. Neighbouring samples are close, so the differences are small. Parquet calls it DELTA_BINARY_PACKED.
- Dictionary encoding lists each distinct value once and stores a short index per sample. Good when values repeat.
- Byte-stream-split groups the first bytes of every number together, then the second bytes, and so on, so similar bytes sit side by side. Blosc2 does the same (shuffle), or the same at the level of bits (bitshuffle), in front of zstd or LZ4.
- ALP spots floats that began as decimals, like 23.45, and stores them as small whole numbers.
- Gorilla and Chimp store each float as its XOR with the one before, which costs few bits when neighbours share most of their bits. Time-series databases use them.
- Arrow IPC is the format data tools use to pass columns to each other. Here it means the plain values, compressed with zstd.
- pco is a compressor built only for numbers. Vortex is a newer file format whose compact mode runs pco inside.
A chunk is the batch of samples from one channel that is encoded together. Small chunks keep a live view fresh; big chunks usually compress better. We also ran Lance and zstd and LZ4 on raw bytes; Lance did not lead on any test, so it stays out of the tables.
Bytes#
Bytes per sample; lower is better.
| Data · chunk size | Parquet standard¹ | Parquet byte-split | Parquet ALP | Arrow IPC + zstd-1 | Blosc2 bitshuffle + zstd | pco L8 | Vortex compact |
|---|---|---|---|---|---|---|---|
| Integer codes | |||||||
| Public codes · 100² | 1.71 | 2.04 | – | 3.70 | 1.89 | 1.30 | 1.27 |
| Public codes · 1,000 | 1.30 | 1.40 | – | 1.59 | 1.26 | 1.01 | 0.99 |
| Public codes · 10,000 | 1.20 | 1.29 | – | 1.36 | 1.19 | 0.95 | 0.95 |
| Simulated fast codes · 1,000 | 1.85 | 2.28 | – | 2.22 | 1.75 | 1.70 | 1.68 |
| Simulated fast codes · 10,000 | 1.79 | 2.16 | – | 1.97 | 1.79 | 1.66 | 1.66 |
| Synthetic slow codes · 10,000 | 0.31 | 0.71 | – | 0.86 | 0.45 | 0.28 | 0.28 |
| Floats | |||||||
| Public floats · 1,000 | 3.31 | 5.51 | 4.28 | 3.71 | 5.42 | 1.57 | 1.50 |
| Public floats · 10,000 | 2.22 | 5.36 | 3.43 | 2.58 | 5.28 | 1.32 | 1.24 |
| Simulated fast floats · 1,000 | 4.36 | 7.35 | 1.87 | 4.53 | 7.26 | 1.89 | 1.78 |
| Simulated fast floats · 10,000 | 3.54 | 7.25 | 1.83 | 3.56 | 7.29 | 1.80 | 1.76 |
| Synthetic slow floats · 10,000 | 1.06 | 2.72 | 0.75 | 1.08 | 2.32 | 0.35 | 0.42 |
¹ Delta or dictionary, picked per chunk, for codes; dictionary or PLAIN, whichever is smaller, for floats; all with zstd-1. ² Parquet pages inside a shared file; as one file per chunk the same data costs 5.83, see small chunks below. Bytes are averages (geometric means) over the 12 public recordings, the 3 fast simulated channels or the 4 synthetic slow curves. pco, Vortex and Blosc2 count the encoded buffer only, with no file around it.
pco and Vortex win every byte row on codes: 7 to 21% smaller than standard Parquet at 10,000 samples. Blosc2's bitshuffle with zstd matched standard Parquet on codes; its plain byte shuffle came within 15% of pco on the public codes (1.10 against 0.95). On floats the spread is wider, and the best standard option changes with the data: dictionary on the public recordings, ALP on the simulated rig's decimal values.
Codes: every option within 1.5x of the best. Floats: a five-fold spread
Bytes per sample at 10,000-sample chunks, average across data sets; shorter is better
CPU: writing and reading#
At the edge, the machine that compresses the data is usually the one acquiring it, so encode time is as scarce as bandwidth. We timed every encoding on one core of an x86 machine and of an Arm machine, each a dedicated cloud machine with nothing else running.
12 public recordings, 10,000-sample chunks. Times in nanoseconds per sample.
| Encoding | Bytes per sample | Encode · x86 | Encode · Arm | Decode · x86 | Decode · Arm |
|---|---|---|---|---|---|
| Integer codes | |||||
| Blosc2 bitshuffle + LZ4 | 1.26 | 0.8 | 2.4 | 0.4 | 1.1 |
| LZ4 on the raw bytes | 1.67 | 1.5 | 2.1 | 0.2 | 0.3 |
| Arrow IPC + zstd-1 | 1.36 | 3.3 | 4.0 | 1.6 | 2.1 |
| Blosc2 bitshuffle + zstd | 1.19 | 4.2 | 6.8 | 0.9 | 1.7 |
| Parquet delta + zstd-1 | 1.22 | 8.6 | 9.7 | 2.0 | 2.1 |
| Blosc2 shuffle + zstd | 1.10 | 11.1 | 11.3 | 1.3 | 1.7 |
| pco L3 | 1.09 | 11.3 | 14.3 | 2.0 | 2.3 |
| Parquet, delta and dictionary both tried | 1.20 | 22.5 | 27.7 | 2.2 | 2.3 |
| pco L8 | 0.95 | 34.3 | 40.2 | 2.2 | 2.5 |
| Vortex compact | 0.95 | 65.5 | 77.9 | 2.4 | 2.9 |
| Floats | |||||
| Gorilla XOR | 6.86 | 3.3 | 3.4 | 2.3 | 2.6 |
| Chimp XOR | 6.21 | 8.6 | 8.2 | 6.3 | 6.4 |
| LZ4 on the raw bytes | 3.75 | 11.3 | 13.9 | 2.3 | 3.0 |
| Parquet dictionary + zstd-1 | 2.23 | 18.4 | 23.4 | 5.2 | 4.8 |
| Arrow IPC + zstd-1 | 2.58 | 18.9 | 21.8 | 5.7 | 8.8 |
| pco L3 | 1.38 | 28.5 | 30.6 | 4.5 | 5.2 |
| pco L8 | 1.32 | 51.8 | 58.8 | 4.3 | 5.1 |
| Parquet ALP + zstd-1 | 3.43 | 76.6 | 81.9 | 7.1 | 9.1 |
| Vortex compact | 1.24 | 140.8 | 167.2 | 3.9 | 4.8 |
Geometric means over the 12 recordings; each is the median of nine timed runs on one pinned core, warm. x86: AMD EPYC 9B45. Arm: Google Axion (Neoverse V2). Sorted by x86 encode time within each group.
Encode cost spreads widely and bytes do not. On codes, Blosc2's bitshuffle with LZ4 came within 3% of Parquet delta's size at a tenth of its encode time. pco L3 took 11% fewer bytes than delta for 1.3 times its CPU; pco L8 22% fewer for four times; Vortex compact the same bytes as pco L8 for eight times. Decoding is a different story: every decoder here ran at a few nanoseconds a sample, and pco and Vortex read as fast as Parquet.
Arm ran most encoders 5 to 25% slower than x86, a little more for zstd. Blosc2's bitshuffle was the exception: two to four times slower on Arm, where its fastest bit-level code path is x86-only.
What that means at 19.2 million samples a second#
Multiplying those per-sample costs by the full rate gives the cores and bandwidth each choice needs. These are sized, not run: treat them as a floor.
Codes stay under 210 Mbit/s with any codec. Floats get there only with pco
Sized for 192 channels at 100 kS/s from one x86 core's averages over 12 public recordings, 10,000-sample chunks
- Blosc2 bitshuffle + LZ4, codes0.015 cores · 194 Mbit/s
- Arrow IPC + zstd-1, codes0.06 cores · 209 Mbit/s
- Parquet delta, codes0.17 cores · 188 Mbit/s
- pco L3, codes0.22 cores · 168 Mbit/s
- pco L8, codes0.66 cores · 146 Mbit/s
- Vortex compact, codes1.26 cores · 146 Mbit/s
- Gorilla XOR, floats0.06 cores · 1053 Mbit/s
- Chimp XOR, floats0.17 cores · 954 Mbit/s
- Parquet dictionary, floats0.35 cores · 342 Mbit/s
- Arrow IPC + zstd-1, floats0.36 cores · 396 Mbit/s
- pco L3, floats0.55 cores · 212 Mbit/s
- pco L8, floats0.99 cores · 203 Mbit/s
- Parquet ALP, floats1.47 cores · 527 Mbit/s
Dashed: uncompressed 64-bit floats: 1,229 Mbit/s; one whole core
At low rates none of this matters. Eight channels at 1 kS/s needed under 0.01 cores and under 1 Mbit/s with every encoding, uncompressed floats included.
Small chunks: the container costs more than the data#
Every container adds a fixed cost per chunk, in bytes and in time. We counted every byte, including Parquet's file footer, on chunks of 10 to 1,000 samples.
Bytes per sample, public recordings as integer codes.
| Sent as | 10 samples | 25 | 50 | 100 | 1,000 |
|---|---|---|---|---|---|
| Parquet, one file per chunk | 45.50 | 19.08 | 10.26 | 5.83 | 1.72 |
| Arrow IPC, one message per chunk | 21.60 | 8.64 | 5.53 | 3.71 | 1.58 |
| Parquet pages, many chunks per file | 5.52 | 2.96 | 2.14 | 1.71 | 1.29 |
| Blosc2 bitshuffle + zstd | 5.20 | 3.26 | 2.43 | 1.89 | 1.25 |
| zstd-1 on the raw bytes | 2.85 | 2.26 | 1.93 | 1.73 | 1.37 |
| LZ4 on the raw bytes | 2.13 | 1.96 | 1.89 | 1.85 | 1.72 |
| pco L8 | 3.25 | 1.98 | 1.55 | 1.29 | 1.00 |
Encode time in nanoseconds per sample, same data, x86.
| Sent as | 10 samples | 25 | 50 | 100 | 1,000 |
|---|---|---|---|---|---|
| Parquet, file or pages | 841 | 333 | 191 | 101 | 19 |
| Arrow IPC + zstd-1 | 74 | 37 | 70 | 43 | 8 |
| Blosc2 bitshuffle + zstd | 21 | 36 | 39 | 38 | 11 |
| zstd-1 on the raw bytes | 20 | 14 | 58 | 37 | 7 |
| LZ4 on the raw bytes | 16 | 8 | 5 | 3 | 2 |
| pco L8 | 508 | 334 | 232 | 212 | 56 |
best in each column within 10% of it. First 60,000 samples of each of the 12 public recordings; Parquet uses delta with zstd-1, Arrow IPC uses zstd-1. Short runs, so the timings are coarser than the CPU table's.
A Parquet file carries about 400 bytes of footer, and an Arrow IPC message about 200 bytes of header, whatever is inside. At 10 samples a chunk, a file per chunk costs 45 bytes for every 2-byte sample, and building it costs 841 ns a sample. pco has almost no framing but a setup cost per chunk: smallest from 50 samples up, and among the slowest to write below 100. Raw LZ4 was the only option that stayed cheap in both bytes and time at every size.
Does the zstd level matter?#
Each cell is bytes per sample · encode nanoseconds per sample. 12 public recordings, 10,000-sample chunks, x86.
| Encoding | zstd-1 | zstd-3 | zstd-6 | zstd-9 | zstd-19 |
|---|---|---|---|---|---|
| Codes · Parquet delta | 1.22 · 8.5 | 1.22 · 11 | 1.21 · 17 | 1.21 · 21 | 1.19 · 58 |
| Codes · Arrow IPC | 1.36 · 3.2 | 1.31 · 3.9 | 1.30 · 7.8 | 1.29 · 9.7 | 1.25 · 136 |
| Floats · Arrow IPC | 2.58 · 19 | 2.31 · 22 | 2.22 · 61 | 2.15 · 107 | 2.05 · 1,246 |
| Floats · Parquet dictionary | 2.23 · 18 | 2.15 · 23 | 2.13 · 32 | 2.13 · 41 | 2.10 · 175 |
After delta encoding, barely: level 19 saves 2.5% for seven times the CPU. On floats sent as plain values, level 3 saves 10% for 15% more CPU, the one step up that clearly pays; level 19 saves 20% for sixty-six times the CPU. Decoding speed hardly moved with the level.
At rest: whole files#
In storage, chunks are big, many share one file, and the data may be read for years by tools you do not control. We stored each public recording as one Parquet file, its chunks as rows of a list column, and counted the whole file: page headers, statistics and footer.
12 public recordings, bytes per sample, whole file.
| Stored as | Rows of 200 samples | Rows of 5,000 | Rows of 65,536 | Write ns · 5,000 | Read ns · 5,000 |
|---|---|---|---|---|---|
| Integer codes | |||||
| Parquet delta + zstd-1 | 1.22 | 1.20 | 1.20 | 6.0 | 2.6 |
| Parquet dictionary + zstd-1 | 1.50 | 1.44 | 1.44 | 8.0 | 3.8 |
| pco L8 blobs in a binary column | 1.23 | 0.98 | 0.94 | 38.7 | 3.3 |
| Floats | |||||
| Parquet dictionary + zstd-1 | 1.72 | 1.53 | 1.53 | 9.2 | 4.3 |
| Parquet PLAIN + zstd-1 | 2.36 | 2.32 | 2.32 | 20.1 | 7.3 |
| Parquet ALP + zstd-1 | 3.19 | 3.06 | 3.05 | 28.9 | 8.5 |
| Parquet byte-split + zstd-1 | 5.06 | 4.81 | 4.78 | 12.4 | 6.7 |
| pco L8 blobs in a binary column | 2.16 | 1.39 | 1.20 | 61.4 | 5.6 |
best in each column within a group within 10% of it. Write and read times are for 5,000-sample rows, one row group per 256 rows, x86. A flat column of one row per sample came within 2% of the 5,000-sample rows with delta, dictionary and PLAIN.
Two things change once chunks share a file. A dictionary now covers a whole row group rather than one chunk, so on the public floats it took 1.53 bytes a sample, against 2.23 when each 10,000-sample chunk carried its own. And small rows hurt pco more than Parquet: at 200 samples a row, the dictionary column beat pco blobs on floats (1.72 against 2.16) and delta matched them on codes. From 5,000 samples a row pco was smaller again, by 18 to 21% on codes and 9 to 22% on floats, while any engine that reads Parquet could read the plain columns. Codes stayed smaller than floats at rest, but by 1.3 times rather than 1.8: the shared dictionary claws back much of the float's waste on 16-bit data.
A regular sample clock needs no time column. A chunk's start time and step rebuild every timestamp, and an explicit microsecond column would add 0.46 bytes a sample.
What surprised us#
- Most "floats" are not really floats. Byte-stream-split was the best standard choice on synthetic noise (6.30 bytes a sample). On real recordings it was the worst Parquet option on 10 of 12: 5.36 on average, against 2.23 for dictionary. Real sensor floats are a converter's whole numbers after scaling. They repeat a limited set of values, which a dictionary uses and byte-splitting scatters.
- The XOR codecs did not fit sensor floats. Gorilla and Chimp took 6.9 and 6.2 bytes a sample on the public floats, more than twice plain zstd's 2.56, and 3.6 and 3.3 on the slow synthetic curves against 1.06. A scaled converter value differs from its neighbour in the low bits of the mantissa by an uneven step, which leaves long runs of meaningful bits to store. They were among the fastest encoders measured, and they do well on values that repeat or change rarely, the data they were designed for.
- ALP needs real decimals. On the simulated rig's decimal values it took 1.83 bytes against 3.54 for the next standard option, and on the public data published as decimal text it matched dictionary (1.15 against 1.17). On floats from a converter's scale it lost every time, and at rest it was the second-largest Parquet option (3.06).
- Vortex's compact mode is pco inside. It matched pco's size at two to three times pco L8's encode time. Vortex's default mode lost to plain Parquet on size.
- Trying two encodings per chunk is rarely worth it. Encoding every chunk both ways and keeping the smaller cost 2.6 times delta's CPU for 2% fewer bytes. Counting the distinct values first costs far less.
The trade-offs, by situation#
Find the row that looks like your data. Each choice buys something and gives something up; bytes are per sample at 10,000-sample chunks unless the row says otherwise.
| If your data is | A good fit | What it buys | What it gives up |
|---|---|---|---|
| Integer codes, read by many tools | Parquet delta + zstd-1 | 1.22 bytes; 8.6 ns to encode, 2 to decode; every engine reads it | about 29% more bytes than pco L8 or Vortex |
| Integer codes, CPU is tight | Blosc2 bitshuffle + LZ4, or Arrow IPC + zstd-1 | 0.8 to 3.3 ns to encode for 1.26 to 1.36 bytes | almost no tool reads Blosc2, and its fast path is slower on Arm; IPC is 11% bigger than Parquet delta |
| Integer codes, bandwidth is tight | pco L3, or L8 if the CPU allows | L3: 1.09 bytes for 11 ns; L8: 0.95 for 34 | readable only through pco's own library, or ClickHouse's beta codec |
| Converters of 20 bits or more | codes, whatever the codec | 3.5 to 5 times fewer bytes than floats | a scale and offset to carry beside the values |
| Floats whose scale you know | codes plus the scale | 1.8 times fewer bytes on standard encodings | a scale to keep with the data, for as long as the data |
| Floats, scale unknown, CPU is tight | Arrow IPC or Parquet dictionary, zstd-1 | 2.2 to 2.6 bytes for 18 to 19 ns | 1.7 to 2 times pco L8's bytes |
| Floats, scale unknown, bandwidth is tight | pco L3 | 1.38 bytes for 28.5 ns | one library to read it; L3 missed a converter's steps on some synthetic floats that L8 found |
| Floats that began as decimals | Parquet ALP, after checking dictionary | 1.83 against 3.54 for the next standard option (simulated) | four times dictionary's encode CPU; few readers yet; loses badly on converter floats |
| Floats from a converter, in storage | Parquet dictionary + zstd, rows of 5,000 or more | 1.53 bytes; any engine reads it | 1.1 to 1.3 times pco blobs' bytes |
| Floats, halved to float32 | a standard encoding | about 10% fewer bytes | exactness: values move by a fraction of a step, so the step must be known to snap back |
| Chunks of 100 samples or fewer | many chunks per file or message, or raw LZ4 | 1.7 to 1.9 bytes at 100 samples | a file per chunk costs 5.83 bytes and 101 ns; pco is slow to write this small |
| Low rates | whatever your tools already read | nothing to tune | nothing measurable: under 0.01 cores and 1 Mbit/s at 8 ch × 1 kS/s |
Who can read it#
A smaller file is worth little if your tools cannot open it. Native means the tool reads the format out of the box; extension means an add-on; library means you decode with the format's own library first.
| Format | DuckDB | Spark | Polars | pandas | Also read by |
|---|---|---|---|---|---|
| Parquet (delta, dictionary, byte-split) | native | native | native | native (pyarrow) | DataFusion and most engines |
| Parquet with ALP | not yet | not yet | not yet | not yet | Rust parquet crate from 60.1 |
| Arrow IPC and Flight | extension | no | native | native (pyarrow) | every Arrow implementation |
| Lance | extension | connector | library | library | DataFusion |
| Vortex | extension | connector | library | library | DataFusion, Trino, Ray |
| pco | no | no | no | library | ClickHouse (beta codec), Zarr |
| Blosc2 | no | no | no | library | PyTables and HDF5, Zarr |
| Gorilla, Chimp | no | no | no | no | time-series databases, inside their own storage |
Parquet ALP is the newest: when Parquet announced it in September 2026, only the Rust implementation read it, and DuckDB support is still an open request. Check Parquet's implementation status page for the latest. ClickHouse's pco codec is a beta setting. The rest of this table is our reading of each project's documentation in November 2026; reader support moves fast, so confirm it for the versions you run.
Who maintains each format
| Format | Specification | Who maintains it | How often it releases |
|---|---|---|---|
| Arrow IPC | Apache standard | Apache Arrow, many implementations | often |
| Parquet encodings | Apache standard | Apache Parquet, many implementations | often |
| Parquet ALP | accepted in July 2026, in parquet-format 2.14.0 (September 2026) | Apache Parquet | in Rust from parquet 60.1 |
| Vortex 0.93 | file format readable back to 0.36 | Linux Foundation (LF AI & Data), 96 contributors | every few days, still 0.x |
| Lance 11 | file format v2.1 stable | LanceDB, 339 contributors | very often |
| pco 1.1 | written specification | 91% of commits from one author (465 of 507), 19 contributors, November 2026 | monthly |
| Blosc2 | frame specification; C library 3.6.1 | C library active; Rust binding by one person, last updated January 2025 | C library active |
For data you keep for years, upkeep matters. Parquet and Arrow are Apache standards with many implementations. Vortex is at the Linux Foundation but still at version 0.x. pco has a written specification, but 91% of its commits come from one author. It was proposed to Parquet in January 2024 and again in March 2025; reviewers raised its Rust-only implementation and its complexity, and it has not been adopted. Its authors report 29 to 94% better compression than other numeric codecs on six data sets (arXiv 2502.06112).
How we tested#
Every number above holds under these conditions.
| Data | 12 public sensor recordings from three sources, 3 fast channels from a simulated test rig, and synthetic signals |
|---|---|
| Sample rates | 10 Hz to 200 kHz |
| Chunk sizes | 100, 1,000 and 10,000 samples; 10 to 1,000 for the small-chunk test; rows of 200 to 65,536 at rest |
| Machines | two dedicated cloud machines with nothing else running: x86, AMD EPYC 9B45 (8 vCPU); Arm, Google Axion, Neoverse V2 (8 vCPU). The edge test ran separately on an 8-core AMD EPYC 7B12 |
| Timing | one pinned core, warm, single-threaded; the median of nine runs (five at rest) |
| Edge load | sized for 192 channels at 100 kS/s and for 8 channels at 1 kS/s, by multiplying single-core averages; the largest rate we actually ran was 2.9 million samples a second |
| Byte counts | identical on both machines, on every row but one Vortex result at 50-sample chunks, and identical to our earlier runs on an Apple M1 Pro |
| Language | sizes are properties of the formats, so they hold whatever language writes them; times are for the Rust implementations named below, and another language's library may be faster or slower |
| Accuracy | lossless: every result decodes back bit for bit, except float32, whose cast error is reported |
| Settings | library defaults, or the compression level named |
| Versions | Rust 1.100; crates arrow and parquet 59.3.2 (60.1.0 for ALP and the at-rest files), pco 1.1.0, zstd 0.13, lz4_flex 0.14, vortex 0.93.0, lance 11.0.0, c-blosc2 2.15; Gorilla and Chimp written by us from their papers |
| Byte accounting | each chunk's encoded bytes. Arrow IPC includes its message header; Parquet includes page headers but not the file footer, which assumes many chunks share one file; pco, Vortex compact, Blosc2 and the XOR codecs count their buffer with no file around it. The small-chunk and at-rest sections count whole files |
Public recordings. Bearing vibration, accelerometers, an encoder, and a hydraulic rig's pressure, power and flow. Each is used twice: as the floats its publisher ships, and as the whole-number codes behind them, recovered from the step between values.
Simulated test rig. A physics model of a high-rate rig: pressure and vibration at 100 kS/s and an accelerometer at 1 kHz. It writes values at fixed decimals, as a data logger does, which is the case ALP is built for.
Synthetic signals. 600,000 samples each, with fixed random seeds: a sine with noise, a step, a near-constant channel, pure noise, four slow curves, and one sine at 8 to 24 bits. Their floats are the codes times a scale and offset.
What we have not measured yet#
- A narrow set of real data. Twelve recordings from three sources, six of them from one bearing rig, and all of 16 bits or fewer. We have no real 24-bit recording: every 24-bit figure here is synthetic or simulated.
- Real converters at the source. The codes-versus-floats edge test used simulated devices, and its CPU is the whole process with a specialised codec. Real analog noise may compress better or worse.
- The full rate. Nothing here ran at 19.2 million samples a second. Cores and bandwidth are single-core averages multiplied up; many channels on many cores contend for memory and cache.
- Query engines. How fast DuckDB, DataFusion or Polars scan many chunks of each layout, rather than decode one, is still to run, as is an end-to-end test of the choices above together.
- Tuning. Every codec ran at its defaults or a named level; its maintainers might squeeze out more. The XOR codecs are our own implementations of the papers, not a production library.
- Corrections. An earlier version of this post said delta encoding beats the specialised codecs on slow, smooth signals; that came from two short channels, and on four longer synthetic curves pco is 12% smaller than delta. It also sized edge CPU from the one recording on which pco and Vortex were slowest; the figures above average all twelve.
Data sets and credits#
Sources and licences
- CWRU Bearing Data, from the Case Western Reserve University Bearing Data Center. The site states no licence; the data is freely downloadable, and we credit the Bearing Data Center as its source. Used: 12 kHz recordings (drive end: normal, inner race, outer race; base accelerometer: outer race) and 48 kHz drive-end recordings (inner and outer race).
- Ottawa bearing vibration under time-varying speed: H. Huang, N. Baddour, "Bearing Vibration Data under Time-varying Rotational Speed Conditions", Mendeley Data, v2, doi:10.17632/v43hmbwxpm.2, CC BY 4.0. Used: healthy and inner-race accelerometer and the encoder line, 200 kHz, first 3 seconds.
- UCI hydraulic rig: N. Helwig, E. Pignanelli, A. Schütze, "Condition monitoring of hydraulic systems", UCI Machine Learning Repository, doi:10.24432/C5CW21, CC BY 4.0. Used: PS1 pressure and EPS1 motor power at 100 Hz, FS1 flow at 10 Hz, cycles joined end to end.
- Simulated test rig: our own physics model of a high-rate rig, one 30-second run, values written at fixed decimals; its three fast channels.
- Gorilla: T. Pelkonen et al., "Gorilla: A Fast, Scalable, In-Memory Time Series Database", VLDB 2015. Chimp: P. Liakos, K. Papakonstantinopoulou, Y. Kotidis, "Chimp: Efficient Lossless Floating Point Compression for Time Series Databases", VLDB 2022.
Series longer than 600,000 samples were cut to that length. We left out the Paderborn bearing data because its licence (CC BY-NC 4.0) allows non-commercial use only.
Questions, or numbers of your own? [email protected] · All posts