v0y4g3r / prom-write-request-bench

Apache License 2.0
11 stars 4 forks source link

Prometheus Write Request Deserialization Benchmark

This repository serves as an example for pursuing better deserialization performance of the well-known Protobuf-encoded Prometheus WriteRequest.

As a baseline, the deserialization implementation generated by prost takes about 7.3ms to decode a WriteRequest with 10k timeseries on our test environment.

This repository contains several branches that each did some optimization effort.

Finally, we cut the deserialization cost from 7.3ms to 1.6ms.