on master help sign in
Add fusion check for some benchmarks
commit7b52d9175a444e475922b54afa21a732c32bc79c authorHarendra Kumar <harendra@composewell.com> dateTue 28 Feb 2023, 15:14 (4 years ago) parenta71f3b7
1 file changed+13−2
benchmark/Streamly/Benchmark/Data/Parser.hs+13−2
benchmark/Streamly/Benchmark/Data/Parser.hs+13−2
@@ -574,8 +574,19 @@ main = do
574574 , bgroup (o_n_heap_prefix moduleName) (o_n_heap_serial value)
575575 ]
576576#else
577+ -- Enable FUSION_CHECK macro at the beginning of the file
578+ -- Enable one benchmark below, and run the benchmark
579+ -- Check the .dump-simpl output
577580 let value = 100000
578− let input = sourceUnfoldrM value 1
579− manyTill value input
581+ -- let input = sourceUnfoldrM value 1
582+ -- manyTill value input
583+ -- deintercalate value input
584+ -- deintercalate1 value input
585+ -- deintercalateAll value input
586+ -- sepByWords input
587+ -- sepByAllWords input
588+ -- sepBy1 input
589+ -- sepByWords1 input
590+ takeFramedByEsc_ value (sourceEscapedFrames value 1)
580591 return ()
581592#endif