on master help sign in
Mention -fspec-constr-recursive ghc flag for compilation
commit2bb75a083d92b50b2e664c9bbfd64063f2562c12 authorHarendra Kumar <harendra.kumar@gmail.com> dateTue 18 Jun 2019, 14:24 (7 years ago) parente879480
1 file changed+4−3
README.md+4−3
README.md+4−3
@@ -129,9 +129,10 @@ benchmarks](https://github.com/composewell/streaming-benchmarks).
129129The following code snippet implements some common Unix command line utilities
130130using streamly. To get an idea about IO streaming performance, you can
131131benchmark these against the regular unix utilities using the `time` command.
132−Make sure to use a big enough input file and compile with `ghc -O2` when
133−benchmarking. Use `+RTS -s` flags on the executable to check the space usage,
134−look for `maximum residency` in the output.
132+Make sure to use a big enough input file and compile with
133+`ghc -O2 -fspec-constr-recursive=10` when benchmarking. Use `+RTS -s` flags on
134+the executable to check the space usage, look for `maximum residency` in the
135+output.
135136
136137Note that `grep -c` counts the number of lines where the pattern occurs whereas
137138the snippet below counts the total number of occurrences of the pattern,