Skip to content

Commit

Permalink
Add findIndex benchmarks (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boarders authored Jan 14, 2021
1 parent eea70ff commit a36cb2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bench/BenchAll.hs
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,8 @@ main = do
, bench "groupBy (>=)" $ nf (L.groupBy (>=)) zeroes
, bench "groupBy (>)" $ nf (L.groupBy (>)) zeroes
]
, bgroup "findIndex"
[ bench "findIndices" $ nf (sum . S.findIndices even) byteStringData
, bench "find" $ nf (S.find (>= 9998)) byteStringData
]
]

0 comments on commit a36cb2a

Please sign in to comment.