Skip to content

Commit 7b3089f

Browse files
committed
Revert "decimal: Add detailed benchmarks for unbounded decimal numbers"
This reverts commit 667a713.
1 parent aa2a5b0 commit 7b3089f

File tree

3 files changed

+11
-190
lines changed

3 files changed

+11
-190
lines changed

bench/BenchDecimalUnbounded.hs

Lines changed: 0 additions & 174 deletions
This file was deleted.

bench/Main.hs

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,31 @@
22
-- Copyright: (c) 2022 Andrew Lelechenko
33
-- Licence: BSD3
44
-- Maintainer: Andrew Lelechenko <[email protected]>
5+
56
module Main where
67

78
import Test.Tasty.Bench
89
import Test.Tasty.Patterns.Printer
910

1011
import BenchChar
1112
import BenchDecimal
12-
import BenchDecimalUnbounded (benchDecimalUnbounded)
1313
import BenchDouble
1414
import BenchHexadecimal
1515
import BenchText
1616

1717
main IO ()
18-
main =
19-
defaultMain $
20-
map (mapLeafBenchmarks addCompare) $
21-
[ benchText
22-
, benchChar
23-
, benchDecimal
24-
, benchDecimalUnbounded
25-
, benchHexadecimal
26-
, benchDouble
27-
]
18+
main = defaultMain $ map (mapLeafBenchmarks addCompare) $
19+
[ benchText
20+
, benchChar
21+
, benchDecimal
22+
, benchHexadecimal
23+
, benchDouble
24+
]
2825

29-
textBenchName String
30-
-- textBenchName = "Data.Text.Lazy.Builder"
31-
textBenchName = "Data.ByteString.Builder"
26+
textBenchName :: String
27+
textBenchName = "Data.Text.Lazy.Builder"
3228

33-
addCompare ([String] Benchmark Benchmark)
29+
addCompare :: ([String] -> Benchmark -> Benchmark)
3430
addCompare (name : path)
3531
| name /= textBenchName = bcompare (printAwkExpr (locateBenchmark (textBenchName : path)))
3632
addCompare _ = id

text-builder-linear.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ benchmark linear-builder-bench
8080
other-modules:
8181
BenchChar
8282
BenchDecimal
83-
BenchDecimalUnbounded
8483
BenchDouble
8584
BenchHexadecimal
8685
BenchText

0 commit comments

Comments
 (0)