rename/temp print

This commit is contained in:
Seungheon Oh 2022-05-25 11:49:43 -05:00
parent 7a599ffa35
commit 005356b759
3 changed files with 13 additions and 9 deletions

View file

@ -18,7 +18,7 @@ import Plutus.V1.Ledger.Api (
)
import Plutus.V1.Ledger.Api qualified as Plutus
import Spec.Spec (
import Spec.Specification (
Specification (Specification),
SpecificationExpectation (Success),
SpecificationTree (..),
@ -30,11 +30,11 @@ import Spec.Spec (
data Benchmark = Benchmark
{ name :: Text
-- ^ Human readable name describing script.
, bCPUBudget :: ExCPU
, cpuBudget :: ExCPU
-- ^ The on-chain execution cost of a script.
, bMemoryBudget :: ExMemory
, memoryBudget :: ExMemory
-- ^ The on-chain memory budget of a script.
, bScriptSize :: Int
, scriptSize :: Int
-- ^ The on-chain size of a script.
}
deriving stock (Show, Eq, Ord, Generic)
@ -43,9 +43,9 @@ instance ToNamedRecord Benchmark where
toNamedRecord (Benchmark {..}) =
namedRecord
[ "name" .= name
, "cpu" .= bCPUBudget
, "mem" .= bMemoryBudget
, "size" .= bScriptSize
, "cpu" .= cpuBudget
, "mem" .= memoryBudget
, "size" .= scriptSize
]
instance DefaultOrdered Benchmark where