Skip to content

Commit b20f115

Browse files
committed
Fix
1 parent 5f9269b commit b20f115

File tree

1 file changed

+6
-2
lines changed
  • plutus-core/cost-model/budgeting-bench/Benchmarks

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ benchInsertCoin gen =
6868
-- 5. Deleting a TokenName by inserting a 0 amount. Randomly extracting a (PolicyId, TokenName) pair from the Value.
6969
-- 6. Deleting a PolicyId by inserting a 0 amount into its last TokenName. Should generate a Value with multiple such PolicyIds, and randomly picking which PolicyId to delete.
7070
-- We're interested in the worst case performance, so we'll use the largest key values possible.
71-
-- Each one of the cases should be applied to monotonically increasing sizes of the Value.
7271
-- We should also run randomized benchmarks, where we insert random values into random Values.
72+
-- We actually want to see how the performance scales with the size of the Value, so we should generate Values of varying sizes.
73+
-- We want to make sure we are also hitting the worst case scenarios and various edge cases.
7374
insertCoinBenchGen
7475
:: StdGen
7576
-> [InsertCoinBenchmark]
@@ -106,4 +107,7 @@ newTokenName gen = do
106107

107108
uniformAmount :: StateGenM StdGen -> BenchState Amount
108109
uniformAmount gen =
109-
Amount <$> uniformRM (0, 100) gen
110+
Amount <$> uniformRM (0, 100) gen -- TODO: tweak the range
111+
112+
newValue :: StateGenM StdGen -> BenchState Value
113+
newValue gen = undefined

0 commit comments

Comments
 (0)