Crate subweight_core

Crate subweight_core 

Source
Expand description

Parse and compare weight Substrate weight files.

Modules§

parse
Parses weight files of Substrate chains.
scope
Provides a scope for evaluating crate::term::Terms.
term
Contains the Term which is used to express weight equations.
testing
traits

Macros§

add
Builds a Term::Add from two Terms.
cadd
Builds a Term::Add from two Terms.
cmul
Builds a Term::Mul from two Terms.
creads
Multiplies a Term with the crate::scope::STORAGE_READ_VAR constant.
cval
cvar
Builds a Term::Var from a String.
cwrites
Multiplies a Term with the crate::scope::STORAGE_WRITE_VAR constant.
mul
Builds a Term::Mul from two Terms.
reads
Multiplies a Term with the crate::scope::STORAGE_READ_VAR constant.
scalar
Builds a Term::Value from a u128.
val
Builds a Term::Value from a u128.
var
Builds a Term::Var from a String.
writes
Multiplies a Term with the crate::scope::STORAGE_WRITE_VAR constant.

Structs§

CompareParams
Parameters for modifying the benchmark behaviour.
ComponentInstanceStrategy
ExtrinsicDiff
FilterParams
TermChange
VERSION
Version of the library. Example: swc 0.2.0+78a04b2.
VERSION_DIRTY

Enums§

CompareMethod
Dimension
MinOrMax
RelativeChange
TermDiff

Constants§

WEIGHT_PER_NANOS

Functions§

compare_commits
compare_extrinsics
compare_files
compare_terms
filter_changes
git_checkout
git_pull
git_reset
percent
sanity_check_term
Checks some obvious stuff:
sort_changes

Type Aliases§

ExtrinsicName
PalletName
Percent
TotalDiff