Comparison to `nix-serve-ng`
Harmonia is a binary cache for nix that serves your /nix/store as a binary cache over http. It's written in Rust for speed.
nix-serve-ng's benchmarks indicate that harmonia is somewhat slower than nix-serve-ng, notably for fetching 10+ MB NARs (harmonia is slower than nix-serve itself here).
Are these benchmarks accurate for the code in master branch?
In any case, mentioning how this project compares (pros? cons?) to nix-serve-ng in the README would be useful.
No. They are not up-to-date. Many optimization have landed since than in harmonia. Before it used some slow callback to nix when it was streaming the nar file. I add a nar serializer in rust so it can be inlined in the send path. I also fixed some unaligned memcpy.