Skip to content

Commit e87943f

Browse files
committed
Add a multi-tx applyTx benchmark
1 parent 7ac48cf commit e87943f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/ledger-state/bench/Performance.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ main = do
9393
bench "Tx2" . whnf (applyTx' mempoolEnv mempoolState)
9494
, env (pure (extractTx validatedTx3)) $
9595
bench "Tx3" . whnf (applyTx' mempoolEnv mempoolState)
96+
, env
97+
(pure [validatedTx1, validatedTx2, validatedTx3])
98+
$ bench "Tx1+Tx2+Tx3" . whnf (F.foldl' (\ms -> fst . applyTx' mempoolEnv ms . extractTx) mempoolState)
9699
]
97100
, env (pure (getUTxO es)) $ \utxo ->
98101
bgroup

0 commit comments

Comments
 (0)