Skip to content

Commit 80b283d

Browse files
committed
benchmarks/ParserBench: clean-up
1 parent 7097531 commit 80b283d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

benchmarks/ParserBench.hs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ module ParserBench (benchmarks) where
22

33
import Nix.Parser
44

5-
import Control.Applicative
65
import Criterion
76

87
benchFile :: FilePath -> Benchmark
9-
benchFile = bench <*> whnfIO . parseNixFile . ("data/" ++)
8+
benchFile = bench <*> whnfIO . parseNixFile . ("data/" <>)
109

1110
benchmarks :: Benchmark
1211
benchmarks = bgroup
13-
"Parser"
14-
[ benchFile "nixpkgs-all-packages.nix"
15-
, benchFile "nixpkgs-all-packages-pretty.nix"
16-
, benchFile "let-comments.nix"
17-
, benchFile "let-comments-multiline.nix"
18-
, benchFile "let.nix"
19-
, benchFile "simple.nix"
20-
, benchFile "simple-pretty.nix"
21-
]
12+
"Parser" $
13+
fmap benchFile
14+
[ "nixpkgs-all-packages.nix"
15+
, "nixpkgs-all-packages-pretty.nix"
16+
, "let-comments.nix"
17+
, "let-comments-multiline.nix"
18+
, "let.nix"
19+
, "simple.nix"
20+
, "simple-pretty.nix"
21+
]

0 commit comments

Comments
 (0)