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)
1111import Bench.Vector.Algo.Spectral (spectral )
1212import Bench.Vector.Algo.Tridiag (tridiag )
1313import Bench.Vector.Algo.FindIndexR (findIndexR , findIndexR_naive , findIndexR_manual )
14+ import Bench.Vector.Algo.NextPermutation (generatePermTests )
1415
1516import Bench.Vector.TestData.ParenTree (parenTree )
1617import Bench.Vector.TestData.Graph (randomGraph )
@@ -49,6 +50,7 @@ main = do
4950 ! ds <- randomVector useSize
5051 ! sp <- randomVector (floor $ sqrt $ fromIntegral useSize)
5152 vi <- MV. new useSize
53+ permTests <- generatePermTests gen useSize
5254
5355 defaultMainWithIngredients ingredients $ bgroup " All"
5456 [ bench " listRank" $ whnf listRank useSize
@@ -65,4 +67,5 @@ main = do
6567 , bench " findIndexR_manual" $ whnf findIndexR_manual ((< indexFindThreshold), as)
6668 , bench " minimumOn" $ whnf (U. minimumOn (\ x -> x* x* x)) as
6769 , bench " maximumOn" $ whnf (U. maximumOn (\ x -> x* x* x)) as
70+ , bgroup " (next|prev)Permutation" $ map (\ (name, act) -> bench name $ whnfIO act) permTests
6871 ]
You can’t perform that action at this time.
0 commit comments