Skip to content

Commit

Permalink
Update PlutusV1 cost model
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Sep 19, 2024
1 parent b50fa91 commit 4318272
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions crates/uplc/src/machine/cost_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ impl BuiltinCosts {
intercept: 0,
slope: 1,
}),
cpu: TwoArguments::AddedSizes(AddedSizes {
intercept: 69522,
slope: 11687,
cpu: TwoArguments::MultipliedSizes(MultipliedSizes {
intercept: 90434,
slope: 519,
}),
},
divide_integer: CostingFun {
Expand All @@ -384,10 +384,10 @@ impl BuiltinCosts {
minimum: 1,
}),
cpu: TwoArguments::ConstAboveDiagonal(ConstantOrTwoArguments {
constant: 196500,
constant: 85848,
model: Box::new(TwoArguments::MultipliedSizes(MultipliedSizes {
intercept: 453240,
slope: 220,
intercept: 228465,
slope: 122,
})),
}),
},
Expand All @@ -398,10 +398,10 @@ impl BuiltinCosts {
minimum: 1,
}),
cpu: TwoArguments::ConstAboveDiagonal(ConstantOrTwoArguments {
constant: 196500,
constant: 85848,
model: Box::new(TwoArguments::MultipliedSizes(MultipliedSizes {
intercept: 453240,
slope: 220,
intercept: 228465,
slope: 122,
})),
}),
},
Expand All @@ -412,10 +412,10 @@ impl BuiltinCosts {
minimum: 1,
}),
cpu: TwoArguments::ConstAboveDiagonal(ConstantOrTwoArguments {
constant: 196500,
constant: 85848,
model: Box::new(TwoArguments::MultipliedSizes(MultipliedSizes {
intercept: 453240,
slope: 220,
intercept: 228465,
slope: 122,
})),
}),
},
Expand All @@ -426,10 +426,10 @@ impl BuiltinCosts {
minimum: 1,
}),
cpu: TwoArguments::ConstAboveDiagonal(ConstantOrTwoArguments {
constant: 196500,
constant: 85848,
model: Box::new(TwoArguments::MultipliedSizes(MultipliedSizes {
intercept: 453240,
slope: 220,
intercept: 228465,
slope: 122,
})),
}),
},
Expand Down Expand Up @@ -557,9 +557,9 @@ impl BuiltinCosts {
},
verify_ed25519_signature: CostingFun {
mem: ThreeArguments::ConstantCost(10),
cpu: ThreeArguments::LinearInZ(LinearSize {
intercept: 57996947,
slope: 18975,
cpu: ThreeArguments::LinearInY(LinearSize {
intercept: 53384111,
slope: 14333,
}),
},
verify_ecdsa_secp256k1_signature: CostingFun {
Expand Down

0 comments on commit 4318272

Please sign in to comment.