Sia

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.

Table of Contents

Performance

In the following benchmark, we compare the serialization and deserialization performance of Sia with other popular serialization libraries.

Serialization
Deserialization
Benchmarks are based on the serialization of a randomly generated array of 5000 objects. The benchmark was run on an AWS EC2 r7iz.2xlarge instance. Source code for the benchmark can be found here.

RPC Performance

In the following benchmark, we compare the performance of Sia in a remote procedure call (RPC) scenario with other popular serialization libraries.

RPC Benchmark

Heavy RPC Benchmark

The benchmark was run on an AWS EC2 r7iz.2xlarge instance. Source code for the benchmark can be found here.

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.

Packet Size

The following table compares the size of the serialized data using Sia with other popular serialization libraries.

LibrarySerialized Size
JSON1402 KB
Sia737 KB
Sia v1932 KB
CBOR-X1138 KB
MsgPack1130 KB

Timeleap SA.

Pl. de l'Industrie 2, 1180 Rolle, Switzerland

Logo

Social Media

Tokenomics

Info