← Latest papers
💻 computer science

Parsing Streams of JSON Documents at Over a Hundred Gigabytes per Second on CPUs

This paper presents a parallel, on-demand JSON stream parser that achieves throughput exceeding 100 GiB/s on CPUs by using lock-free work distribution and fusing query evaluation with parsing, significantly outperforming state-of-the-art tree-building and structural-index parsers as well as GPU-based solutions.

Original authors: Jaël Champagne Gareau, Daniel Lemire

Published 2026-11-23
📖 5 min read🧠 Deep dive

Original authors: Jaël Champagne Gareau, Daniel Lemire

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the digital world, data often arrives not as neat, pre-packaged files, but as a relentless, high-speed river of text. One of the most common formats for this flow is JSON, a lightweight language used to structure information for websites, applications, and scientific instruments. Imagine a massive logbook where every single line is a complete, self-contained story about a user, a product, or a sensor reading. These stories are independent of one another, yet they arrive in a single, continuous stream. For computers, the challenge is not just reading these stories, but reading them fast enough to keep up with the flow. When the volume reaches hundreds of gigabytes per second, the computer's ability to parse, or interpret, this text becomes a bottleneck, slowing down everything from financial analysis to scientific discovery. The goal is to turn this stream into useful answers as quickly as possible, without getting bogged down in the mechanics of reading every single character.

A team of researchers at Université TÉLUQ has developed a new way to handle this torrent of data, achieving speeds that were previously thought impossible on standard computer processors. They built a system that can parse streams of JSON documents at rates exceeding one hundred gigabytes per second. To put this in perspective, a modern hard drive might take several seconds to read a single gigabyte of data; this new method can process that same amount of data in a fraction of a second, and it does so by using the many cores of a standard server processor in a highly efficient, parallel fashion. The researchers did not rely on specialized graphics cards, which are often used for heavy lifting, but instead optimized the work for the central processing units found in most data centers.

The core of their innovation lies in how they divide the work. Instead of having a single worker read the entire stream from start to finish, or having workers fight over who gets to read the next piece, the system uses a simple, shared counter. Each worker thread claims a chunk of the data stream from this counter. Crucially, the system ensures that no single document is ever cut in half. If a worker's assigned chunk ends in the middle of a sentence, the system instantly snaps the boundary forward to the next line break, ensuring that every worker receives a complete, whole document. This snapping happens almost instantly by searching for a specific character that marks the end of a line. Because the documents are independent, once a worker has its chunk, it can process it entirely on its own without needing to ask for permission or wait for others. This eliminates the traffic jams that usually slow down parallel computing.

Furthermore, the researchers fused the act of reading the data with the act of answering a question. In many traditional systems, the computer must first build a complete map of every document, storing every number and word in a complex tree structure, before it can even begin to look for specific information. This new method skips the map entirely. It reads the stream and, as it goes, it only decodes the specific pieces of information that a user has asked for. If a query asks only for a person's name and age, the system ignores the address, the email, and the transaction history, saving a tremendous amount of time and energy. This "on-demand" approach means the computer never does unnecessary work.

When the researchers tested this system against the fastest existing tools, the results were striking. On a server with ninety-six processor cores, the system reached speeds of up to 229 gigabytes per second. This is several times faster than the best performance reported by specialized graphics processors on the same data. When compared to the leading CPU-based competitor, a tool known for building structural indexes, the new system was between four and seventeen times faster from start to finish. The difference was so large that the researchers had to account for the fact that the competitor's tool requires a massive, padded copy of the data before it can even begin working, a step their new system avoids entirely. Even when compared to other common libraries used to build document trees, the new parser used significantly fewer processor instructions for every byte of data it processed.

The study also addressed the practicalities of running such a system. The researchers found that the way tasks are assigned to workers matters. While a dynamic system where workers grab the next available chunk of work is generally robust, a static system where workers are assigned a fixed range of the data can be even faster on certain hardware, provided the data chunks are sized correctly relative to the document lengths. They also discovered that simply adding more workers does not always help; once the number of workers exceeds the physical cores of the processor, performance can actually drop because the workers spend more time waiting for each other than doing useful work. The optimal performance was found by carefully balancing the size of the data chunks and the number of active workers.

This work demonstrates that the limits of data processing are not fixed by the hardware alone, but by how the software is designed to use that hardware. By treating the stream of documents as a series of independent tasks that can be snapped together without overlap, and by refusing to decode information that is not needed, the researchers have shown that standard computer processors can handle data flows at speeds that rival, and often exceed, specialized supercomputing hardware. The code and the benchmarks used in the study are open for anyone to inspect, inviting further exploration into how we can make the flow of information in our digital world faster and more efficient.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →