-- | -- Copyright: (c) 2022 Andrew Lelechenko -- Licence: BSD3 -- Maintainer: Andrew Lelechenko module Main where import Test.Tasty.Bench import Test.Tasty.Patterns.Printer import BenchChar import BenchDecimal import BenchDouble import BenchHexadecimal import BenchText main ∷ IO () main = defaultMain $ map (mapLeafBenchmarks addCompare) $ [ benchText , benchChar , benchDecimal , benchHexadecimal , benchDouble ] textBenchName :: String textBenchName = "Data.Text.Lazy.Builder" addCompare :: ([String] -> Benchmark -> Benchmark) addCompare (name : path) | name /= textBenchName = bcompare (printAwkExpr (locateBenchmark (textBenchName : path))) addCompare _ = id