Sia is a super-fast binary serialization format optimized for speed and size. It is ideal for high-performance applications requiring quick and efficient data serialization and deserialization, such as network protocols, file formats, and data storage solutions.
In the following benchmark, we compare the serialization and deserialization performance of Sia with other popular serialization libraries.
In the following benchmark, we compare the performance of Sia in a remote procedure call (RPC) scenario with other popular serialization libraries.
These benchmarks measure the entire RPC process, including serialization, deserialization, and network overhead. The results show that Sia is one of the fastest serialization libraries available.
The RPC benchmark uses a simple method that returns a balance object for a given account. The heavy RPC benchmark calls a more complex function with a larger payload.
In the simple RPC benchmark, Sia outperforms other serialization libraries by a small margin, delivering an additional 2300 requests/s (a total of 39818 requests/s) compared to JSON. In the heavy RPC benchmark, Sia significantly outperforms other serialization libraries, delivering more than 2.1 times the number of requests per second compared to JSON.
The following table compares the size of the serialized data using Sia with other popular serialization libraries.
Library | Serialized Size |
---|---|
JSON | 1402 KB |
Sia | 737 KB |
Sia v1 | 932 KB |
CBOR-X | 1138 KB |
MsgPack | 1130 KB |
Pl. de l'Industrie 2, 1180 Rolle, Switzerland