File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
vector-bench-papi/benchmarks Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import Bench.Vector.Algo.Quickhull (quickhull)
11
11
import Bench.Vector.Algo.Spectral (spectral )
12
12
import Bench.Vector.Algo.Tridiag (tridiag )
13
13
import Bench.Vector.Algo.FindIndexR (findIndexR , findIndexR_naive , findIndexR_manual )
14
+ import Bench.Vector.Algo.NextPermutation (generatePermTests )
14
15
15
16
import Bench.Vector.TestData.ParenTree (parenTree )
16
17
import Bench.Vector.TestData.Graph (randomGraph )
@@ -49,6 +50,7 @@ main = do
49
50
! ds <- randomVector useSize
50
51
! sp <- randomVector (floor $ sqrt $ fromIntegral useSize)
51
52
vi <- MV. new useSize
53
+ permTests <- generatePermTests gen useSize
52
54
53
55
defaultMainWithIngredients ingredients $ bgroup " All"
54
56
[ bench " listRank" $ whnf listRank useSize
@@ -65,4 +67,5 @@ main = do
65
67
, bench " findIndexR_manual" $ whnf findIndexR_manual ((< indexFindThreshold), as)
66
68
, bench " minimumOn" $ whnf (U. minimumOn (\ x -> x* x* x)) as
67
69
, bench " maximumOn" $ whnf (U. maximumOn (\ x -> x* x* x)) as
70
+ , bgroup " (next|prev)Permutation" $ map (\ (name, act) -> bench name $ whnfIO act) permTests
68
71
]
You can’t perform that action at this time.
0 commit comments