@@ -586,69 +586,6 @@ benchmark linear
586 build-depends: template-haskell >= 2.14 && < 2.16
586 build-depends: template-haskell >= 2.14 && < 2.16
587 , inspection-testing >= 0.4 && < 0.5
587 , inspection-testing >= 0.4 && < 0.5
589−benchmark linear-async
590− import: bench-options-threaded
591− cpp-options: -DLINEAR_ASYNC
592− type: exitcode-stdio-1.0
593− hs-source-dirs: benchmark
594− main-is: LinearAsync.hs
595− other-modules: Streamly.Benchmark.Prelude
598− , base >= 4.8 && < 5
599− , deepseq >= 1.4.1 && < 1.5
600− , random >= 1.0 && < 2.0
601− , gauge >= 0.2.4 && < 0.3
604− transformers >= 0.4 && < 0.6
606− build-depends: template-haskell >= 2.14 && < 2.16
607− , inspection-testing >= 0.4 && < 0.5
609−benchmark linear-async-long
610− import: bench-options-threaded
611− cpp-options: -DLONG_BENCHMARKS
612− type: exitcode-stdio-1.0
613− hs-source-dirs: benchmark
614− main-is: LinearAsync.hs
615− other-modules: Streamly.Benchmark.Prelude
620− , base >= 4.8 && < 5
621− , deepseq >= 1.4.1 && < 1.5
622− , random >= 1.0 && < 2.0
623− , gauge >= 0.2.4 && < 0.3
626− transformers >= 0.4 && < 0.6
628− build-depends: template-haskell >= 2.14 && < 2.16
629− , inspection-testing >= 0.4 && < 0.5
633−benchmark linear-rate
634− import: bench-options-threaded
635− type: exitcode-stdio-1.0
636− hs-source-dirs: benchmark
637− main-is: LinearRate.hs
638− other-modules: Streamly.Benchmark.Prelude
641− , base >= 4.8 && < 5
642− , deepseq >= 1.4.1 && < 1.5
643− , random >= 1.0 && < 2.0
644− , gauge >= 0.2.4 && < 0.3
647− transformers >= 0.4 && < 0.6
649− build-depends: template-haskell >= 2.14 && < 2.16
650− , inspection-testing >= 0.4 && < 0.5
652benchmark nested
589benchmark nested
653 import: bench-options
590 import: bench-options
654 type: exitcode-stdio-1.0
591 type: exitcode-stdio-1.0
@@ -749,6 +686,89 @@ benchmark fileio
749 build-depends: template-haskell >= 2.14 && < 2.16
686 build-depends: template-haskell >= 2.14 && < 2.16
750 , inspection-testing >= 0.4 && < 0.5
687 , inspection-testing >= 0.4 && < 0.5
689+-------------------------------------------------------------------------------
690+-- Threaded Benchmarks
691+-------------------------------------------------------------------------------
693+benchmark linear-async
694+ import: bench-options-threaded
695+ cpp-options: -DLINEAR_ASYNC
696+ type: exitcode-stdio-1.0
697+ hs-source-dirs: benchmark
698+ main-is: LinearAsync.hs
699+ other-modules: Streamly.Benchmark.Prelude
702+ , base >= 4.8 && < 5
703+ , deepseq >= 1.4.1 && < 1.5
704+ , random >= 1.0 && < 2.0
705+ , gauge >= 0.2.4 && < 0.3
708+ transformers >= 0.4 && < 0.6
710+ build-depends: template-haskell >= 2.14 && < 2.16
711+ , inspection-testing >= 0.4 && < 0.5
713+benchmark linear-async-long
714+ import: bench-options-threaded
715+ cpp-options: -DLONG_BENCHMARKS
716+ type: exitcode-stdio-1.0
717+ hs-source-dirs: benchmark
718+ main-is: LinearAsync.hs
719+ other-modules: Streamly.Benchmark.Prelude
724+ , base >= 4.8 && < 5
725+ , deepseq >= 1.4.1 && < 1.5
726+ , random >= 1.0 && < 2.0
727+ , gauge >= 0.2.4 && < 0.3
730+ transformers >= 0.4 && < 0.6
732+ build-depends: template-haskell >= 2.14 && < 2.16
733+ , inspection-testing >= 0.4 && < 0.5
737+benchmark nested-concurrent
738+ import: bench-options-threaded
739+ type: exitcode-stdio-1.0
740+ hs-source-dirs: benchmark
741+ main-is: NestedConcurrent.hs
742+ other-modules: NestedOps
745+ , base >= 4.8 && < 5
746+ , deepseq >= 1.4.1 && < 1.5
747+ , random >= 1.0 && < 2.0
748+ , gauge >= 0.2.4 && < 0.3
751+ transformers >= 0.4 && < 0.6
753+benchmark linear-rate
754+ import: bench-options-threaded
755+ type: exitcode-stdio-1.0
756+ hs-source-dirs: benchmark
757+ main-is: LinearRate.hs
758+ other-modules: Streamly.Benchmark.Prelude
761+ , base >= 4.8 && < 5
762+ , deepseq >= 1.4.1 && < 1.5
763+ , random >= 1.0 && < 2.0
764+ , gauge >= 0.2.4 && < 0.3
767+ transformers >= 0.4 && < 0.6
769+ build-depends: template-haskell >= 2.14 && < 2.16
770+ , inspection-testing >= 0.4 && < 0.5
752benchmark concurrent
772benchmark concurrent
753 import: bench-options-threaded
773 import: bench-options-threaded
754 type: exitcode-stdio-1.0
774 type: exitcode-stdio-1.0