PhloemBlog
Engineering

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.

By Phloem13 November 2026Updated 20 November 202615 min read

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.

On this page

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.

6.5×

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 ns

Reading 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.

ConverterCodes · Parquet deltaCodes · pco L8Floats · best standardFloats · pco L8
8 bits0.050.030.130.13
12 bits0.170.171.580.41
16 bits0.650.616.081.49
20 bits1.171.116.085.51
24 bits1.671.616.095.59
swipe for more columns →

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 themBytes per sample for the same converter output, as integer codes or as scaled 64-bit floatsinteger codes plus a scalescaled 64-bit floats12 public recordings, 10,000-sample chunks (average)codes, standard Parquet12 public recordings, 10,000-sample chunks (average), codes, standard Parquet: 1.21.20floats, best standard Parquet12 public recordings, 10,000-sample chunks (average), floats, best standard Parquet: 2.222.22codes, pco L812 public recordings, 10,000-sample chunks (average), codes, pco L8: 0.950.95floats, pco L812 public recordings, 10,000-sample chunks (average), floats, pco L8: 1.321.32Simulated acquisition devices, 80 channels: on the wirecodes, pcoSimulated acquisition devices, 80 channels: on the wire, codes, pco: 1.561.56floats, pcoSimulated acquisition devices, 80 channels: on the wire, floats, pco: 2.442.44floats, Arrow IPC + zstdSimulated acquisition devices, 80 channels: on the wire, floats, Arrow IPC + zstd: 3.693.69Simulated 24-bit converter: storedcodes, pcoSimulated 24-bit converter: stored, codes, pco: 2.362.36floats, pcoSimulated 24-bit converter: stored, floats, pco: 6.426.42

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

integer codes plus a scalescaled 64-bit floats
12 public recordings, 10,000-sample chunks (average)codes, standard Parquet12 public recordings, 10,000-sample chunks (average), codes, standard Parquet: 1.21.20floats, best standard Parquet12 public recordings, 10,000-sample chunks (average), floats, best standard Parquet: 2.222.22codes, pco L812 public recordings, 10,000-sample chunks (average), codes, pco L8: 0.950.95floats, pco L812 public recordings, 10,000-sample chunks (average), floats, pco L8: 1.321.32Simulated acquisition devices, 80 channels: on the wirecodes, pcoSimulated acquisition devices, 80 channels: on the wire, codes, pco: 1.561.56floats, pcoSimulated acquisition devices, 80 channels: on the wire, floats, pco: 2.442.44floats, Arrow IPC + zstdSimulated acquisition devices, 80 channels: on the wire, floats, Arrow IPC + zstd: 3.693.69Simulated 24-bit converter: storedcodes, pcoSimulated 24-bit converter: stored, codes, pco: 2.362.36floats, pcoSimulated 24-bit converter: stored, floats, pco: 6.426.42
Figure 1 · Public recordings and simulated acquisition devices

What it does at the edge#

Simulated acquisition devices at the edge. Lower is better.

MeasureCodes + pcoFloats + pcoFloats + Arrow IPC + zstd
Edge CPU, whole acquisition process (ns per sample)244–246324–330437–441
On the wire (bytes per sample)1.562.443.69
Stored, two 24-bit converters (bytes per sample)2.36, 2.486.42, 6.77–
Stored, 16-bit converters (bytes per sample)0.98–1.480.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.

Worth knowing

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.

Encoding64-bit floats32-bit floatsInteger codes
Parquet dictionary + zstd-12.231.941.72
Parquet PLAIN + zstd-12.562.331.60
Arrow IPC + zstd-12.582.351.36
Parquet byte-split + zstd-15.362.571.29
pco L81.321.740.95
Vortex compact1.241.680.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 sizeParquet standard¹Parquet byte-splitParquet ALPArrow IPC + zstd-1Blosc2 bitshuffle + zstdpco L8Vortex compact
Integer codes
Public codes · 100²1.712.04–3.701.891.301.27
Public codes · 1,0001.301.40–1.591.261.010.99
Public codes · 10,0001.201.29–1.361.190.950.95
Simulated fast codes · 1,0001.852.28–2.221.751.701.68
Simulated fast codes · 10,0001.792.16–1.971.791.661.66
Synthetic slow codes · 10,0000.310.71–0.860.450.280.28
Floats
Public floats · 1,0003.315.514.283.715.421.571.50
Public floats · 10,0002.225.363.432.585.281.321.24
Simulated fast floats · 1,0004.367.351.874.537.261.891.78
Simulated fast floats · 10,0003.547.251.833.567.291.801.76
Synthetic slow floats · 10,0001.062.720.751.082.320.350.42
swipe for more columns →

¹ 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 spreadBytes per sample at 10,000-sample chunks, average across data sets; shorter is betterStandard (Parquet, Arrow)Specialised (pco, Vortex, Blosc2, XOR codecs)Public recordings, integer codesVortex compactPublic recordings, integer codes, Vortex compact: 0.9490.95pco L8Public recordings, integer codes, pco L8: 0.9510.95Blosc2 bitshuffle + zstdPublic recordings, integer codes, Blosc2 bitshuffle + zstd: 1.1921.19Parquet delta or dictionaryPublic recordings, integer codes, Parquet delta or dictionary: 1.1971.20Parquet byte-split + zstd-1Public recordings, integer codes, Parquet byte-split + zstd-1: 1.2941.29Arrow IPC + zstd-1Public recordings, integer codes, Arrow IPC + zstd-1: 1.3591.36Simulated test rig, fast channels, codespco L8Simulated test rig, fast channels, codes, pco L8: 1.6551.66Vortex compactSimulated test rig, fast channels, codes, Vortex compact: 1.6581.66Blosc2 bitshuffle + zstdSimulated test rig, fast channels, codes, Blosc2 bitshuffle + zstd: 1.7861.79Parquet delta or dictionarySimulated test rig, fast channels, codes, Parquet delta or dictionary: 1.7881.79Arrow IPC + zstd-1Simulated test rig, fast channels, codes, Arrow IPC + zstd-1: 1.9721.97Parquet byte-split + zstd-1Simulated test rig, fast channels, codes, Parquet byte-split + zstd-1: 2.1632.16Public recordings, shipped floatsVortex compactPublic recordings, shipped floats, Vortex compact: 1.2351.24pco L8Public recordings, shipped floats, pco L8: 1.321.32Parquet dictionary + zstdPublic recordings, shipped floats, Parquet dictionary + zstd: 2.2272.23Arrow IPC + zstd-1Public recordings, shipped floats, Arrow IPC + zstd-1: 2.5762.58Parquet ALP + zstdPublic recordings, shipped floats, Parquet ALP + zstd: 3.4343.43Parquet byte-split + zstd-1Public recordings, shipped floats, Parquet byte-split + zstd-1: 5.365.36Chimp XORPublic recordings, shipped floats, Chimp XOR: 6.2126.21Simulated test rig, fast channels, decimal floatsVortex compactSimulated test rig, fast channels, decimal floats, Vortex compact: 1.7591.76pco L8Simulated test rig, fast channels, decimal floats, pco L8: 1.81.80Parquet ALP + zstdSimulated test rig, fast channels, decimal floats, Parquet ALP + zstd: 1.8341.83Parquet PLAIN + zstdSimulated test rig, fast channels, decimal floats, Parquet PLAIN + zstd: 3.543.54Arrow IPC + zstd-1Simulated test rig, fast channels, decimal floats, Arrow IPC + zstd-1: 3.5573.56Parquet byte-split + zstd-1Simulated test rig, fast channels, decimal floats, Parquet byte-split + zstd-1: 7.2537.25Chimp XORSimulated test rig, fast channels, decimal floats, Chimp XOR: 7.7697.77

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

Standard (Parquet, Arrow)Specialised (pco, Vortex, Blosc2, XOR codecs)
Public recordings, integer codesVortex compactPublic recordings, integer codes, Vortex compact: 0.9490.95pco L8Public recordings, integer codes, pco L8: 0.9510.95Blosc2 bitshuffle + zstdPublic recordings, integer codes, Blosc2 bitshuffle + zstd: 1.1921.19Parquet delta or dictionaryPublic recordings, integer codes, Parquet delta or dictionary: 1.1971.20Parquet byte-split + zstd-1Public recordings, integer codes, Parquet byte-split + zstd-1: 1.2941.29Arrow IPC + zstd-1Public recordings, integer codes, Arrow IPC + zstd-1: 1.3591.36Simulated test rig, fast channels, codespco L8Simulated test rig, fast channels, codes, pco L8: 1.6551.66Vortex compactSimulated test rig, fast channels, codes, Vortex compact: 1.6581.66Blosc2 bitshuffle + zstdSimulated test rig, fast channels, codes, Blosc2 bitshuffle + zstd: 1.7861.79Parquet delta or dictionarySimulated test rig, fast channels, codes, Parquet delta or dictionary: 1.7881.79Arrow IPC + zstd-1Simulated test rig, fast channels, codes, Arrow IPC + zstd-1: 1.9721.97Parquet byte-split + zstd-1Simulated test rig, fast channels, codes, Parquet byte-split + zstd-1: 2.1632.16Public recordings, shipped floatsVortex compactPublic recordings, shipped floats, Vortex compact: 1.2351.24pco L8Public recordings, shipped floats, pco L8: 1.321.32Parquet dictionary + zstdPublic recordings, shipped floats, Parquet dictionary + zstd: 2.2272.23Arrow IPC + zstd-1Public recordings, shipped floats, Arrow IPC + zstd-1: 2.5762.58Parquet ALP + zstdPublic recordings, shipped floats, Parquet ALP + zstd: 3.4343.43Parquet byte-split + zstd-1Public recordings, shipped floats, Parquet byte-split + zstd-1: 5.365.36Chimp XORPublic recordings, shipped floats, Chimp XOR: 6.2126.21Simulated test rig, fast channels, decimal floatsVortex compactSimulated test rig, fast channels, decimal floats, Vortex compact: 1.7591.76pco L8Simulated test rig, fast channels, decimal floats, pco L8: 1.81.80Parquet ALP + zstdSimulated test rig, fast channels, decimal floats, Parquet ALP + zstd: 1.8341.83Parquet PLAIN + zstdSimulated test rig, fast channels, decimal floats, Parquet PLAIN + zstd: 3.543.54Arrow IPC + zstd-1Simulated test rig, fast channels, decimal floats, Arrow IPC + zstd-1: 3.5573.56Parquet byte-split + zstd-1Simulated test rig, fast channels, decimal floats, Parquet byte-split + zstd-1: 7.2537.25Chimp XORSimulated test rig, fast channels, decimal floats, Chimp XOR: 7.7697.77
Figure 2 · 10,000-sample chunks · byte counts identical on x86 and Arm

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.

EncodingBytes per sampleEncode · x86Encode · ArmDecode · x86Decode · Arm
Integer codes
Blosc2 bitshuffle + LZ41.260.82.40.41.1
LZ4 on the raw bytes1.671.52.10.20.3
Arrow IPC + zstd-11.363.34.01.62.1
Blosc2 bitshuffle + zstd1.194.26.80.91.7
Parquet delta + zstd-11.228.69.72.02.1
Blosc2 shuffle + zstd1.1011.111.31.31.7
pco L31.0911.314.32.02.3
Parquet, delta and dictionary both tried1.2022.527.72.22.3
pco L80.9534.340.22.22.5
Vortex compact0.9565.577.92.42.9
Floats
Gorilla XOR6.863.33.42.32.6
Chimp XOR6.218.68.26.36.4
LZ4 on the raw bytes3.7511.313.92.33.0
Parquet dictionary + zstd-12.2318.423.45.24.8
Arrow IPC + zstd-12.5818.921.85.78.8
pco L31.3828.530.64.55.2
pco L81.3251.858.84.35.1
Parquet ALP + zstd-13.4376.681.97.19.1
Vortex compact1.24140.8167.23.94.8
swipe for more columns →

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 pcoSized for 192 channels at 100 kS/s from one x86 core's averages over 12 public recordings, 10,000-sample chunkssent as integer codessent as 64-bit floats02505007501,0001,250uplink, Mbit/s0.010.030.10.313cores to encode (log scale)uncompressed 64-bit floats: 1,229 Mbit/sone whole coreBlosc2 bitshuffle + LZ4, codes: 0.015 cores, 194 Mbit/sBlosc2 bitshuffle + LZ4, codesArrow IPC + zstd-1, codes: 0.06 cores, 209 Mbit/sArrow IPC + zstd-1, codesParquet delta, codes: 0.17 cores, 188 Mbit/sParquet delta, codespco L3, codes: 0.22 cores, 168 Mbit/spco L3, codespco L8, codes: 0.66 cores, 146 Mbit/spco L8, codesVortex compact, codes: 1.26 cores, 146 Mbit/sVortex compact, codesGorilla XOR, floats: 0.06 cores, 1053 Mbit/sGorilla XOR, floatsChimp XOR, floats: 0.17 cores, 954 Mbit/sChimp XOR, floatsParquet dictionary, floats: 0.35 cores, 342 Mbit/sParquet dictionary, floatsArrow IPC + zstd-1, floats: 0.36 cores, 396 Mbit/sArrow IPC + zstd-1, floatspco L3, floats: 0.55 cores, 212 Mbit/spco L3, floatspco L8, floats: 0.99 cores, 203 Mbit/spco L8, floatsParquet ALP, floats: 1.47 cores, 527 Mbit/sParquet ALP, floats

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

sent as integer codessent as 64-bit floats
uplink, Mbit/s02505007501,0001,2500.010.030.10.313cores to encode (log scale)Blosc2 bitshuffle + LZ4, codes: 0.015 cores, 194 Mbit/s1Arrow IPC + zstd-1, codes: 0.06 cores, 209 Mbit/s2Parquet delta, codes: 0.17 cores, 188 Mbit/s3pco L3, codes: 0.22 cores, 168 Mbit/s4pco L8, codes: 0.66 cores, 146 Mbit/s5Vortex compact, codes: 1.26 cores, 146 Mbit/s6Gorilla XOR, floats: 0.06 cores, 1053 Mbit/s7Chimp XOR, floats: 0.17 cores, 954 Mbit/s8Parquet dictionary, floats: 0.35 cores, 342 Mbit/s9Arrow IPC + zstd-1, floats: 0.36 cores, 396 Mbit/s10pco L3, floats: 0.55 cores, 212 Mbit/s11pco L8, floats: 0.99 cores, 203 Mbit/s12Parquet ALP, floats: 1.47 cores, 527 Mbit/s13
  1. Blosc2 bitshuffle + LZ4, codes0.015 cores · 194 Mbit/s
  2. Arrow IPC + zstd-1, codes0.06 cores · 209 Mbit/s
  3. Parquet delta, codes0.17 cores · 188 Mbit/s
  4. pco L3, codes0.22 cores · 168 Mbit/s
  5. pco L8, codes0.66 cores · 146 Mbit/s
  6. Vortex compact, codes1.26 cores · 146 Mbit/s
  7. Gorilla XOR, floats0.06 cores · 1053 Mbit/s
  8. Chimp XOR, floats0.17 cores · 954 Mbit/s
  9. Parquet dictionary, floats0.35 cores · 342 Mbit/s
  10. Arrow IPC + zstd-1, floats0.36 cores · 396 Mbit/s
  11. pco L3, floats0.55 cores · 212 Mbit/s
  12. pco L8, floats0.99 cores · 203 Mbit/s
  13. Parquet ALP, floats1.47 cores · 527 Mbit/s

Dashed: uncompressed 64-bit floats: 1,229 Mbit/s; one whole core

Figure 3 · Cores = samples per second × encode time per sample; Mbit/s = samples per second × bytes × 8. Vortex compact on floats (2.7 cores, 190 Mbit/s) is left out for legibility

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 as10 samples25501001,000
Parquet, one file per chunk45.5019.0810.265.831.72
Arrow IPC, one message per chunk21.608.645.533.711.58
Parquet pages, many chunks per file5.522.962.141.711.29
Blosc2 bitshuffle + zstd5.203.262.431.891.25
zstd-1 on the raw bytes2.852.261.931.731.37
LZ4 on the raw bytes2.131.961.891.851.72
pco L83.251.981.551.291.00
swipe for more columns →

Encode time in nanoseconds per sample, same data, x86.

Sent as10 samples25501001,000
Parquet, file or pages84133319110119
Arrow IPC + zstd-1743770438
Blosc2 bitshuffle + zstd2136393811
zstd-1 on the raw bytes201458377
LZ4 on the raw bytes168532
pco L850833423221256
swipe for more columns →

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.

Encodingzstd-1zstd-3zstd-6zstd-9zstd-19
Codes · Parquet delta1.22 · 8.51.22 · 111.21 · 171.21 · 211.19 · 58
Codes · Arrow IPC1.36 · 3.21.31 · 3.91.30 · 7.81.29 · 9.71.25 · 136
Floats · Arrow IPC2.58 · 192.31 · 222.22 · 612.15 · 1072.05 · 1,246
Floats · Parquet dictionary2.23 · 182.15 · 232.13 · 322.13 · 412.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 asRows of 200 samplesRows of 5,000Rows of 65,536Write ns · 5,000Read ns · 5,000
Integer codes
Parquet delta + zstd-11.221.201.206.02.6
Parquet dictionary + zstd-11.501.441.448.03.8
pco L8 blobs in a binary column1.230.980.9438.73.3
Floats
Parquet dictionary + zstd-11.721.531.539.24.3
Parquet PLAIN + zstd-12.362.322.3220.17.3
Parquet ALP + zstd-13.193.063.0528.98.5
Parquet byte-split + zstd-15.064.814.7812.46.7
pco L8 blobs in a binary column2.161.391.2061.45.6
swipe for more columns →

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#

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. 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 isA good fitWhat it buysWhat it gives up
Integer codes, read by many toolsParquet delta + zstd-11.22 bytes; 8.6 ns to encode, 2 to decode; every engine reads itabout 29% more bytes than pco L8 or Vortex
Integer codes, CPU is tightBlosc2 bitshuffle + LZ4, or Arrow IPC + zstd-10.8 to 3.3 ns to encode for 1.26 to 1.36 bytesalmost no tool reads Blosc2, and its fast path is slower on Arm; IPC is 11% bigger than Parquet delta
Integer codes, bandwidth is tightpco L3, or L8 if the CPU allowsL3: 1.09 bytes for 11 ns; L8: 0.95 for 34readable only through pco's own library, or ClickHouse's beta codec
Converters of 20 bits or morecodes, whatever the codec3.5 to 5 times fewer bytes than floatsa scale and offset to carry beside the values
Floats whose scale you knowcodes plus the scale1.8 times fewer bytes on standard encodingsa scale to keep with the data, for as long as the data
Floats, scale unknown, CPU is tightArrow IPC or Parquet dictionary, zstd-12.2 to 2.6 bytes for 18 to 19 ns1.7 to 2 times pco L8's bytes
Floats, scale unknown, bandwidth is tightpco L31.38 bytes for 28.5 nsone library to read it; L3 missed a converter's steps on some synthetic floats that L8 found
Floats that began as decimalsParquet ALP, after checking dictionary1.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 storageParquet dictionary + zstd, rows of 5,000 or more1.53 bytes; any engine reads it1.1 to 1.3 times pco blobs' bytes
Floats, halved to float32a standard encodingabout 10% fewer bytesexactness: values move by a fraction of a step, so the step must be known to snap back
Chunks of 100 samples or fewermany chunks per file or message, or raw LZ41.7 to 1.9 bytes at 100 samplesa file per chunk costs 5.83 bytes and 101 ns; pco is slow to write this small
Low rateswhatever your tools already readnothing to tunenothing 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.

FormatDuckDBSparkPolarspandasAlso read by
Parquet (delta, dictionary, byte-split)nativenativenativenative (pyarrow)DataFusion and most engines
Parquet with ALPnot yetnot yetnot yetnot yetRust parquet crate from 60.1
Arrow IPC and Flightextensionnonativenative (pyarrow)every Arrow implementation
LanceextensionconnectorlibrarylibraryDataFusion
VortexextensionconnectorlibrarylibraryDataFusion, Trino, Ray
pconononolibraryClickHouse (beta codec), Zarr
Blosc2nononolibraryPyTables and HDF5, Zarr
Gorilla, Chimpnonononotime-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
FormatSpecificationWho maintains itHow often it releases
Arrow IPCApache standardApache Arrow, many implementationsoften
Parquet encodingsApache standardApache Parquet, many implementationsoften
Parquet ALPaccepted in July 2026, in parquet-format 2.14.0 (September 2026)Apache Parquetin Rust from parquet 60.1
Vortex 0.93file format readable back to 0.36Linux Foundation (LF AI & Data), 96 contributorsevery few days, still 0.x
Lance 11file format v2.1 stableLanceDB, 339 contributorsvery often
pco 1.1written specification91% of commits from one author (465 of 507), 19 contributors, November 2026monthly
Blosc2frame specification; C library 3.6.1C library active; Rust binding by one person, last updated January 2025C 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.

Data12 public sensor recordings from three sources, 3 fast channels from a simulated test rig, and synthetic signals
Sample rates10 Hz to 200 kHz
Chunk sizes100, 1,000 and 10,000 samples; 10 to 1,000 for the small-chunk test; rows of 200 to 65,536 at rest
Machinestwo 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
Timingone pinned core, warm, single-threaded; the median of nine runs (five at rest)
Edge loadsized 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 countsidentical 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
Languagesizes 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
Accuracylossless: every result decodes back bit for bit, except float32, whose cast error is reported
Settingslibrary defaults, or the compression level named
VersionsRust 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 accountingeach 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