You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plutus-core/cost-model/budgeting-bench/Benchmarks/Values.hs
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,9 @@ benchInsertCoin gen =
68
68
-- 5. Deleting a TokenName by inserting a 0 amount. Randomly extracting a (PolicyId, TokenName) pair from the Value.
69
69
-- 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.
70
70
-- 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.
72
71
-- 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.
73
74
insertCoinBenchGen
74
75
::StdGen
75
76
-> [InsertCoinBenchmark]
@@ -106,4 +107,7 @@ newTokenName gen = do
106
107
107
108
uniformAmount::StateGenMStdGen->BenchStateAmount
108
109
uniformAmount gen =
109
-
Amount<$> uniformRM (0, 100) gen
110
+
Amount<$> uniformRM (0, 100) gen -- TODO: tweak the range
0 commit comments