3-- Copyright : (c) 2018 Harendra Kumar
6-- Maintainer : streamly@composewell.com
8import Control.DeepSeq (NFData)
9import Data.Functor.Identity (Identity, runIdentity)
10import System.Random (randomRIO)
11import qualified NestedOps as Ops
15benchIO :: (NFData b) => String -> (Int -> IO b) -> Benchmark
16benchIO name f = bench name $ nfIO $ randomRIO (1,1) >>= f
18_benchId :: (NFData b) => String -> (Int -> Identity b) -> Benchmark
19_benchId name f = bench name $ nf (\g -> runIdentity (g 1)) f
23 -- TBD Study scaling with 10, 100, 1000 loop iterations
26 [ benchIO "toNullAp" $ Ops.toNullAp serially
27 , benchIO "toNull" $ Ops.toNull serially
28 , benchIO "toNull3" $ Ops.toNull3 serially
29 , benchIO "toList" $ Ops.toList serially
30 -- , benchIO "toListSome" $ Ops.toListSome serially
31 , benchIO "filterAllOut" $ Ops.filterAllOut serially
32 , benchIO "filterAllIn" $ Ops.filterAllIn serially
33 , benchIO "filterSome" $ Ops.filterSome serially
34 , benchIO "breakAfterSome" $ Ops.breakAfterSome serially
38 [ benchIO "toNullAp" $ Ops.toNullAp wSerially
39 , benchIO "toNull" $ Ops.toNull wSerially
40 , benchIO "toNull3" $ Ops.toNull3 wSerially
41 , benchIO "toList" $ Ops.toList wSerially
42 -- , benchIO "toListSome" $ Ops.toListSome wSerially
43 , benchIO "filterAllOut" $ Ops.filterAllOut wSerially
44 , benchIO "filterAllIn" $ Ops.filterAllIn wSerially
45 , benchIO "filterSome" $ Ops.filterSome wSerially
46 , benchIO "breakAfterSome" $ Ops.breakAfterSome wSerially
49 , bgroup "zipSerially"
50 [ benchIO "toNullAp" $ Ops.toNullAp zipSerially
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