Skip to content

Commit 0793947

Browse files
committed
Actually typecorrect benchmark...
1 parent 6cec398 commit 0793947

File tree

1 file changed

+4
-3
lines changed
  • plutus-core/cost-model/budgeting-bench/Benchmarks

1 file changed

+4
-3
lines changed

plutus-core/cost-model/budgeting-bench/Benchmarks/Lists.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ benchDropList :: StdGen -> Benchmark
8787
benchDropList gen =
8888
let name = DropList
8989
resultSizes = [100, 500, 1500, 3000, 5000]
90-
results1 = makeSizedByteStrings seedA resultSizes
90+
-- Produce lists of sz items, each of sz length
91+
stringlists = makeListOfByteStringLists seedA [ (sz , sz) | sz <- resultSizes ]
9192
intInputs = [ intMaxList 10 (toInteger sz) gen | sz <- resultSizes ]
92-
inputs = concat [[(n , r1) | n <- ns] | (ns, r1) <- zip intInputs results1]
93+
inputs = concat [[(n , rs) | n <- ns] | (ns, rs) <- zip intInputs stringlists]
9394
in createTwoTermBuiltinBenchElementwiseWithWrappers
94-
(IntegerCostedLiterally, id) name [integer,bytestring] inputs
95+
(IntegerCostedLiterally, id) name [bytestring] inputs
9596

9697
benchMkCons :: StdGen -> Benchmark
9798
benchMkCons gen =

0 commit comments

Comments
 (0)