mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 21:21:33 +02:00
graph/db: add ChanUpdatesInHorizon benchmark
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user