prometheus/util
Sasha 1dcdb07d30
promql: use Kahan summation for Native Histograms (#15687)
As for float samples, Kahan summation is used for the `sum` and `avg` aggregation and for the respective `_over_time` functions.

Kahan summation is not perfect. This commit also adds tests that even Kahan summation cannot reliably pass.
These tests are commented out.

Note that the behavior might be different on other hardware platforms. We have to keep an eye on test failing on other hardware platforms and adjust them accordingly.

Signed-off-by: Aleksandr Smirnov <5targazer@mail.ru>
2026-02-08 00:52:22 +01:00
..
almost Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
annotations Use custom annotation for histogram quantile monotonicity info to provide more details (#15578) 2026-02-05 18:35:48 +01:00
compression Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
convertnhcb Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
documentcli Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
features API: Add a /api/v1/features endpoint 2025-12-09 16:13:14 +01:00
fmtutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
fuzzing Merge pull request #17644 from prometheus/binop-fill-modifier 2026-01-19 20:05:52 +01:00
gate Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
httputil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
jsonutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
junitxml Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
kahansum promql: use Kahan summation for Native Histograms (#15687) 2026-02-08 00:52:22 +01:00
logging Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
namevalidationutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
netconnlimit Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
notifications Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
osutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
pool Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
runtime Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
runutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
stats Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
strutil util: enhance test coverage for strutil package 2026-01-10 16:05:21 +05:30
teststorage test: Add benchmark without storage + fix skipRecording mock feature (#17987) 2026-02-02 12:44:11 +00:00
testutil chore: remove testutil.T which is no longer needed since Go 1.13 (#17903) 2026-01-21 13:02:58 +00:00
treecache Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
zeropool Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00