diff options
Diffstat (limited to 'bench/Main.hs')
-rw-r--r-- | bench/Main.hs | 4 |
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 | |||
49 | bitfieldUnion :: Int -> Bitfield | 49 | bitfieldUnion :: Int -> Bitfield |
50 | bitfieldUnion n = BT.empty n `union` BT.empty n | 50 | bitfieldUnion n = BT.empty n `union` BT.empty n |
51 | 51 | ||
52 | bitfieldHaveCount :: Int -> Int | ||
53 | bitfieldHaveCount n = haveCount (BT.full n) | ||
54 | |||
52 | selectionStrictFirst :: Int -> Maybe Int | 55 | selectionStrictFirst :: Int -> Maybe Int |
53 | selectionStrictFirst n = strictFirst (BT.empty n) (BT.empty n) [] | 56 | selectionStrictFirst 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) |