prometheus/scrape
Bryan Boreham 2dec6da3d1 [TESTS] Scraping: Reset appender in BenchmarkScrapeLoopAppend
Otherwise performance is dominated by adding to a slice that gets longer
and longer as the benchmark progresses.

I chose to Rollback rather than Commit because that should do less work.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2026-01-17 16:37:21 +00:00
..
testdata Include test CA text info (#14699) 2024-08-20 19:41:02 +02:00
clientprotobuf.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
helpers_test.go refactor(scrape)[PART2]: simplified scrapeLoop constructors & tests; add teststorage.Appendable mock (#17631) 2025-12-22 09:38:48 +00:00
manager.go Add configuration option to control extra-scrape-metrics (#17606) 2026-01-06 09:00:49 -03:00
manager_test.go refactor(scrape)[PART2]: simplified scrapeLoop constructors & tests; add teststorage.Appendable mock (#17631) 2025-12-22 09:38:48 +00:00
metrics.go Add scrape commit and total duration metrics (#17665) 2026-01-13 14:07:27 -03:00
scrape.go Add scrape commit and total duration metrics (#17665) 2026-01-13 14:07:27 -03:00
scrape_test.go [TESTS] Scraping: Reset appender in BenchmarkScrapeLoopAppend 2026-01-17 16:37:21 +00:00
target.go refactor(scrape)[PART2]: simplified scrapeLoop constructors & tests; add teststorage.Appendable mock (#17631) 2025-12-22 09:38:48 +00:00
target_test.go refactor(scrape)[PART2]: simplified scrapeLoop constructors & tests; add teststorage.Appendable mock (#17631) 2025-12-22 09:38:48 +00:00