harmonia icon indicating copy to clipboard operation
harmonia copied to clipboard

Comparison to `nix-serve-ng`

Open srid opened this issue 1 year ago • 1 comments

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).

image

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.

srid avatar May 21 '24 17:05 srid

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.

Mic92 avatar Jun 12 '24 15:06 Mic92