maralorn / nix-output-monitor

Pipe your nix-build output through the nix-output-monitor a.k.a nom to get additional information while building.
GNU Affero General Public License v3.0
841 stars 24 forks source link

Make build time average build time mean #56

Open NobbZ opened 1 year ago

NobbZ commented 1 year ago

Currently it is documented that the previous bildtimes are averaged.

It would probably make sense to use a mean here, as thats more resistant against outliers.

maralorn commented 1 year ago

I agree that this could deliver more robust information. The advantage of the rolling average we are currently using is, that it prevents database blow-up because we only need to save one number per package.

SuperSandro2000 commented 1 year ago

thats more resistant against outliers.

I think we need something smarter than average build time. Sometimes (to often) nix has hicups where it suddenly takes 10 minutes to build a derivation which should take 1 minute. Also when building many things in parallel chromium can take over an hour where it usually takes 30 minutes.