From 4cc5cfef2a06ddae5efa9f21ed50b1c6dbe9bea5 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Tue, 5 Aug 2025 11:44:53 +0200 Subject: [PATCH] graph/db: add ChanUpdatesInHorizon benchmark --- graph/db/benchmark_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/graph/db/benchmark_test.go b/graph/db/benchmark_test.go index 08dba16de..1022197c5 100644 --- a/graph/db/benchmark_test.go +++ b/graph/db/benchmark_test.go @@ -736,6 +736,15 @@ func BenchmarkGraphReadMethods(b *testing.B) { require.NoError(b, err) }, }, + { + name: "ChanUpdatesInHorizon", + fn: func(b testing.TB, store V1Store) { + _, err := store.ChanUpdatesInHorizon( + time.Unix(0, 0), time.Now(), + ) + require.NoError(b, err) + }, + }, } for _, test := range tests {