@@ -584,21 +584,17 @@ test-suite parallel-loops
584-- Benchmarks
584-- Benchmarks
585-------------------------------------------------------------------------------
585-------------------------------------------------------------------------------
588−-- For linear, linear-async, linear-rate, nested and nested-concurrent if you
587+-- For linear, linear-async, linear-rate, nested and nested-concurrent
589−-- want to pass the number of stream elements for benchmarking, you can pass it
588+-- you can pass the number of elements in the stream using the
590−-- as the first argument after `--`, as a gauge argument. If you don't give the
589+-- --stream-size option:
591−-- argument, the number of stream elements default to 100000.
593−-- $ cabal run linear -- 1000000 [additional gauge options here...]
590+-- $ cabal run linear -- --stream-size 1000000
594−-- $ cabal run linear -- [additional gauge options here...]
596benchmark linear
592benchmark linear
597 import: bench-options
593 import: bench-options
598 type: exitcode-stdio-1.0
594 type: exitcode-stdio-1.0
599 hs-source-dirs: benchmark
595 hs-source-dirs: benchmark
600 main-is: Linear.hs
596 main-is: Linear.hs
601− other-modules: Streamly.Benchmark.Prelude
597+ other-modules: Streamly.Benchmark.Prelude, Common
602 build-depends:
598 build-depends:
604 , base >= 4.8 && < 5
600 , base >= 4.8 && < 5
@@ -617,7 +613,7 @@ benchmark nested
617 type: exitcode-stdio-1.0
613 type: exitcode-stdio-1.0
618 hs-source-dirs: benchmark
614 hs-source-dirs: benchmark
619 main-is: Nested.hs
615 main-is: Nested.hs
620− other-modules: NestedOps
616+ other-modules: NestedOps, Common
621 build-depends:
617 build-depends:
623 , base >= 4.8 && < 5
619 , base >= 4.8 && < 5
@@ -721,7 +717,7 @@ benchmark linear-async
721 type: exitcode-stdio-1.0
717 type: exitcode-stdio-1.0
722 hs-source-dirs: benchmark
718 hs-source-dirs: benchmark
723 main-is: LinearAsync.hs
719 main-is: LinearAsync.hs
724− other-modules: Streamly.Benchmark.Prelude
720+ other-modules: Streamly.Benchmark.Prelude, Common
725 build-depends:
721 build-depends:
727 , base >= 4.8 && < 5
723 , base >= 4.8 && < 5
@@ -740,7 +736,7 @@ benchmark nested-concurrent
740 type: exitcode-stdio-1.0
736 type: exitcode-stdio-1.0
741 hs-source-dirs: benchmark
737 hs-source-dirs: benchmark
742 main-is: NestedConcurrent.hs
738 main-is: NestedConcurrent.hs
743− other-modules: NestedOps
739+ other-modules: NestedOps, Common
744 build-depends:
740 build-depends:
746 , base >= 4.8 && < 5
742 , base >= 4.8 && < 5
@@ -756,7 +752,7 @@ benchmark linear-rate
756 type: exitcode-stdio-1.0
752 type: exitcode-stdio-1.0
757 hs-source-dirs: benchmark
753 hs-source-dirs: benchmark
758 main-is: LinearRate.hs
754 main-is: LinearRate.hs
759− other-modules: Streamly.Benchmark.Prelude
755+ other-modules: Streamly.Benchmark.Prelude, Common
760 build-depends:
756 build-depends:
762 , base >= 4.8 && < 5
758 , base >= 4.8 && < 5