1module Sets (benchmarks) where
5import qualified Data.Attoparsec.Text.FastSet as FastSet
6import qualified TextFastSet
7import qualified Data.HashSet as HashSet
8import qualified Data.IntSet as IntSet
11smallSet = ['a'..'z'] ++ ['A'..'Z'] ++ ['0'..'9']
13benchmarks :: Benchmark
14benchmarks = bgroup "sets" [
15 bench "Fast" $ whnf (FastSet.member '*') (FastSet.fromList smallSet)
16 , bench "Hash" $ whnf (HashSet.member '*') (HashSet.fromList smallSet)
17 , bench "Int" $ whnf (IntSet.member (ord '*'))
18 (IntSet.fromList (map ord smallSet))
19 , bench "TextFast" $ whnf (TextFastSet.member '*')
20 (TextFastSet.fromList smallSet)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list