summaryrefslogtreecommitdiff
path: root/bench/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'bench/Main.hs')
-rw-r--r--bench/Main.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/Main.hs b/bench/Main.hs
index 6662b953..6162eeb1 100644
--- a/bench/Main.hs
+++ b/bench/Main.hs
@@ -49,6 +49,9 @@ bitfieldInter n = BT.empty n `intersection` BT.empty n
49bitfieldUnion :: Int -> Bitfield 49bitfieldUnion :: Int -> Bitfield
50bitfieldUnion n = BT.empty n `union` BT.empty n 50bitfieldUnion n = BT.empty n `union` BT.empty n
51 51
52bitfieldHaveCount :: Int -> Int
53bitfieldHaveCount n = haveCount (BT.full n)
54
52selectionStrictFirst :: Int -> Maybe Int 55selectionStrictFirst :: Int -> Maybe Int
53selectionStrictFirst n = strictFirst (BT.empty n) (BT.empty n) [] 56selectionStrictFirst n = strictFirst (BT.empty n) (BT.empty n) []
54 57
@@ -84,6 +87,7 @@ main = do
84 , bench "bitfield/difference" $ nf bitfieldDiff (10 * m) 87 , bench "bitfield/difference" $ nf bitfieldDiff (10 * m)
85 , bench "bitfield/intersection" $ nf bitfieldInter (10 * m) 88 , bench "bitfield/intersection" $ nf bitfieldInter (10 * m)
86 , bench "bitfield/union" $ nf bitfieldUnion (10 * m) 89 , bench "bitfield/union" $ nf bitfieldUnion (10 * m)
90 , bench "bitfield/haveCount" $ nf bitfieldHaveCount (10 * m)
87 91
88 , bench "selection/strictFirst" $ nf selectionStrictFirst (10 * m) 92 , bench "selection/strictFirst" $ nf selectionStrictFirst (10 * m)
89 , bench "selection/strictLast" $ nf selectionStrictLast (10 * m) 93 , bench "selection/strictLast" $ nf selectionStrictLast (10 * m)