on master help sign in
Mention -fspec-constr-recursive ghc flag for compilation
2bb75a0Harendra Kumar
README.md+4−3
@@ -129,9 +129,10 @@ benchmarks](https://github.com/composewell/streaming-benchmarks).
129The following code snippet implements some common Unix command line utilities
129The following code snippet implements some common Unix command line utilities
130using streamly. To get an idea about IO streaming performance, you can
130using streamly. To get an idea about IO streaming performance, you can
131benchmark these against the regular unix utilities using the `time` command.
131benchmark 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
132+Make sure to use a big enough input file and compile with
133−benchmarking. Use `+RTS -s` flags on the executable to check the space usage,
133+`ghc -O2 -fspec-constr-recursive=10` when benchmarking. Use `+RTS -s` flags on
134−look for `maximum residency` in the output.
134+the executable to check the space usage, look for `maximum residency` in the
135+output.
135
136
136Note that `grep -c` counts the number of lines where the pattern occurs whereas
137Note that `grep -c` counts the number of lines where the pattern occurs whereas
137the snippet below counts the total number of occurrences of the pattern,
138the snippet below counts the total number of occurrences of the pattern,