Skip to content

Commit

Permalink
workbench: add DReps to the ci-bench profile
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed May 7, 2024
1 parent 6b1103e commit 9b40b61
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ PROFILES_BASE := default default-p2p plutus plutus-secp-ecdsa plutus
PROFILES_FAST := fast fast-p2p fast-plutus fast-notracer fast-oldtracing faststartup-24M
PROFILES_CI_TEST := ci-test ci-test-p2p ci-test-plutus ci-test-notracer ci-test-rtview ci-test-dense10
PROFILES_CI_BENCH := ci-bench ci-bench-p2p ci-bench-plutus ci-bench-plutus-secp-ecdsa ci-bench-plutus-secp-schnorr ci-bench-notracer ci-bench-rtview ci-bench-lmdb
PROFILES_CI_BENCH_DREP := ci-bench-drep
PROFILES_TRACE_BENCH := trace-bench trace-bench-notracer trace-bench-oldtracing trace-bench-rtview
PROFILES_TRACE_FULL := trace-full trace-full-rtview
PROFILES_EPOCHTRANS := epoch-transition
Expand Down Expand Up @@ -108,6 +109,7 @@ LOCAL_PROFILES += $(PROFILES_BASE)
LOCAL_PROFILES += $(PROFILES_FAST)
LOCAL_PROFILES += $(PROFILES_CI_TEST)
LOCAL_PROFILES += $(PROFILES_CI_BENCH)
LOCAL_PROFILES += $(PROFILES_CI_BENCH_DREP)
LOCAL_PROFILES += $(PROFILES_TRACE_BENCH)
LOCAL_PROFILES += $(PROFILES_TRACE_FULL)
LOCAL_PROFILES += $(PROFILES_EPOCHTRANS)
Expand Down
2 changes: 2 additions & 0 deletions nix/workbench/genesis/genesis.jq
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def profile_cli_args($p):
, "--delegated-supply", fmt_decimal_10_5($p.derived.supply_delegated)
, "--pools", $p.composition.n_pools
, "--stake-delegators", $p.derived.delegators_effective
, "--drep-keys", $p.genesis.dreps
, "--stuffed-utxo", fmt_decimal_10_5($p.derived.utxo_stuffed)
])
, pools:
Expand Down Expand Up @@ -64,6 +65,7 @@ def profile_genesis_cache_key($p; $profile_file):

, delegators
, utxo_stuffed
, dreps

} as $genesis_crypto_affecting_data

Expand Down
3 changes: 3 additions & 0 deletions nix/workbench/profile/prof0-defaults.jq
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def era_defaults($era):
, funds_balance: 10000000000000
, utxo: 0

## DReps
, dreps: 0

## Blockchain time & block density
, active_slots_coeff: 0.05
, epoch_length: 600 # Ought to be at least (10 * k / f).
Expand Down
19 changes: 17 additions & 2 deletions nix/workbench/profile/prof1-variants.jq
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,25 @@ def all_profile_variants:
{ tps: (1 * $M / (360 * 20))
}
} as $dataset_dish
|
##
### Definition vocabulary: dreps
##
| { genesis:
{ dreps: 10
}
} as $dreps_small
| { genesis:
{ dreps: 100
}
} as $dreps_medium
| { genesis:
{ dreps: 1000
}
} as $dreps_large
##
### Definition vocabulary: chain
##
|
{ chaindb:
{ mainnet_chunks:
{ chaindb_server: 10
Expand Down Expand Up @@ -608,7 +623,7 @@ def all_profile_variants:
{ desc: "Miniature dataset, CI-friendly duration, test scale"
}) as $citest_base
|
($scenario_fixed_loaded * $doublet * $dataset_miniature * $for_15blk * $no_filtering *
($scenario_fixed_loaded * $doublet * $dataset_miniature * $for_15blk * $no_filtering * $dreps_small *
{ desc: "Miniature dataset, CI-friendly duration, bench scale"
}) as $cibench_base
|
Expand Down
3 changes: 3 additions & 0 deletions nix/workbench/profile/prof3-derived.jq
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def add_derived_params:

| ($gsis.delegators // $n_pools) as $effective_delegators

| ($gsis.dreps // 0) as $dreps

| ($generator_tx_count * $gtor.inputs_per_tx)
as $utxo_generated
| (($pparams.maxBlockBodySize / default_value_tx_size_estimate) | floor)
Expand Down Expand Up @@ -183,6 +185,7 @@ def add_derived_params:
}
, genesis:
{ delegators: $effective_delegators
, dreps: $gsis.dreps
, pool_coin: (if $n_pools == 0 then 0
else $gsis.per_pool_balance end)
, shelley:
Expand Down

0 comments on commit 9b40b61

Please sign in to comment.