From d1aa0a6f2ca4f80cb876c5f20ccef86076983efb Mon Sep 17 00:00:00 2001 From: voidlizard Date: Fri, 11 Jul 2025 07:17:30 +0300 Subject: [PATCH] wip --- hbs2-tests/test/TestNCQ.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hbs2-tests/test/TestNCQ.hs b/hbs2-tests/test/TestNCQ.hs index 2776a142..980e8097 100644 --- a/hbs2-tests/test/TestNCQ.hs +++ b/hbs2-tests/test/TestNCQ.hs @@ -669,14 +669,14 @@ testFilterEmulate1 n TestEnv{..} = do (t1,_) <- timeItT do for_ allShit $ \ha -> do - ncqLocate2 sto ha <&> maybe (-1) ncqEntrySize + void $ ncqLocate2 sto ha notice $ "lookup-no-filter" <+> pretty (realToFrac @_ @(Fixed E3) t1) (t2,_) <- timeItT do for_ allShit $ \ha -> do unless (HS.member ha noHs) do - void $ ncqLocate2 sto ha <&> maybe (-1) ncqEntrySize + void $ ncqLocate2 sto ha notice $ "lookup-fake-filter" <+> pretty (realToFrac @_ @(Fixed E3) t2) @@ -684,7 +684,7 @@ testFilterEmulate1 n TestEnv{..} = do for_ allShit $ \ha -> do let here = IntSet.member (bucno ha) dumb when here do - void $ ncqLocate2 sto ha <&> maybe (-1) ncqEntrySize + void $ ncqLocate2 sto ha notice $ "lookup-dumb-filter" <+> pretty (realToFrac @_ @(Fixed E3) t3) @@ -692,7 +692,7 @@ testFilterEmulate1 n TestEnv{..} = do for_ allShit $ \ha -> do let here = Bloom.elem (coerce ha) bloom when here do - void $ ncqLocate2 sto ha <&> maybe (-1) ncqEntrySize + void $ ncqLocate2 sto ha notice $ "lookup-simple-bloom-filter" <+> pretty (realToFrac @_ @(Fixed E3) t4)