Skip to content

Commit

Permalink
consistently name the benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Jun 23, 2024
1 parent 062db1f commit c5c16a4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions contract-benchmarks/ContractsBench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ runCoinTransferTx db sender receiver =
where
pdb = pdPactDb db
title =
"Coin transfer from "
"InterpretOnly(transfer) from "
<> getSender sender
<> " to "
<> getSender receiver
Expand Down Expand Up @@ -230,7 +230,7 @@ runCoinTransferTxWithNameReso db sender receiver =
where
pdb = pdPactDb db
title =
"Coin transfer from "
"Load+Link+Interpret(transfer) from "
<> getSender sender
<> " to "
<> getSender receiver
Expand Down Expand Up @@ -294,17 +294,19 @@ contractsPath = "contract-benchmarks" </> "contracts"
allBenchmarks :: Bool -> Benchmark
allBenchmarks _resetDb =
env mkPactDb $ \ ~(NoForce pdb) ->
bgroup "Coin benches"
[
runPureBench pdb "factorial 1000" (factorialNTXRaw 1000)
, runPureBench pdb "Let 100" (deepLetTXRaw 100)
, runPureBench pdb "Let 1000" (deepLetTXRaw 1000)
-- , runPureBench pdb "Let 10000" (deepLetTXRaw 10000)
bgroup "Production Pact Benchmarks"
[ pureBenchmarks pdb
, coinTransferBenches pdb
]
where
pureBenchmarks pdb = bgroup "Pure Code"
[ runPureBench pdb "Factorial 1000" (factorialNTXRaw 1000)
, runPureBench pdb "Let 100" (deepLetTXRaw 100)
, runPureBench pdb "Let 1000" (deepLetTXRaw 1000)
-- , runPureBench pdb "Let 10000" (deepLetTXRaw 10000)
]
coinTransferBenches pdb =
bgroup "CoinTransfer"
bgroup "Coin Transfer"
[ runCoinTransferTx pdb CoinBenchSenderA CoinBenchSenderB
, runCoinTransferTxWithNameReso pdb CoinBenchSenderA CoinBenchSenderB
]
Expand Down

0 comments on commit c5c16a4

Please sign in to comment.