Investigate and eliminate the gap between target TPS of injection and de facto TPS of injection
Currently on master we can see:
Tezos TPS benchmark
Protocol: Alpha
Total number of accounts to use: 5
Blocks to bake: 10
Spinning up the network...
Using the default average block description
Average transaction cost: 1521
Using the parameter file: /run/user/1000/tezt-91109/1/parameters.json
{
"bootstrap_accounts": [
[
"edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav",
"4000000000000"
],
[
"edpktzNbDAUjUk697W7gYg2CRuBQjyPxbEg8dLccYYwKSKvkPvjtV9",
"4000000000000"
],
[
"edpkuTXkJDGcFd5nh6VvMz8phXxU3Bi7h6hqgywNFi1vZTfQNnS1RV",
"4000000000000"
],
[
"edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU",
"4000000000000"
],
[
"edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n",
"4000000000000"
]
],
"preserved_cycles": 5,
"blocks_per_cycle": 8192,
"blocks_per_commitment": 64,
"blocks_per_stake_snapshot": 512,
"blocks_per_voting_period": 40960,
"hard_gas_limit_per_operation": "1040000",
"hard_gas_limit_per_block": "5200000",
"proof_of_work_threshold": "70368744177663",
"tokens_per_roll": "6000000000",
"seed_nonce_revelation_tip": "125000",
"origination_size": 257,
"baking_reward_fixed_portion": "10000000",
"baking_reward_bonus_per_slot": "4286",
"endorsing_reward_per_slot": "2857",
"cost_per_byte": "250",
"hard_storage_limit_per_operation": "60000",
"quorum_min": 2000,
"quorum_max": 7000,
"min_proposal_quorum": 500,
"liquidity_baking_subsidy": "2500000",
"liquidity_baking_sunset_level": 3063809,
"liquidity_baking_escape_ema_threshold": 666667,
"max_operations_time_to_live": 120,
"minimal_block_delay": "30",
"delay_increment_per_round": "15",
"consensus_committee_size": 7000,
"consensus_threshold": 4667,
"minimal_participation_ratio": {
"numerator": 2,
"denominator": 3
},
"max_slashing_period": 2,
"frozen_deposits_percentage": 10,
"double_baking_punishment": "640000000",
"ratio_of_frozen_deposits_slashed_per_double_endorsement": {
"numerator": 1,
"denominator": 2
},
"cache_script_size": 100000000,
"cache_stake_distribution_cycles": 8,
"cache_sampler_state_cycles": 8,
"tx_rollup_enable": false,
"tx_rollup_origination_size": 60000,
"tx_rollup_hard_size_limit_per_inbox": 100000,
"tx_rollup_hard_size_limit_per_message": 5000,
"sc_rollup_enable": false,
"sc_rollup_origination_size": 6314
}
Waiting to reach level 3
The benchmark has been started
Produced 10 block(s) in 300.80 seconds
BLV9HfGX4w9DP1wVPHZ4aKQ6PXT4szAnNPq2Fsu9XHcSkuaYHwa -> 3057
BLVyWitKEckxpAX5Nxu9SU85tHKV6cTPDUBFoZLzsX671MfBfSd -> 3065
BLGmDi44n9VRejUkFsrem6v7mTLCPpxNia7qKRmecNiFRKGrDPU -> 3041
BLsxh9E1GUiEefz3QC13YjbXy8X3vBMbUn6mWowrgrAvqK39fKo -> 3071
BKiuUTGaZNr2t5P8CGGRh1kdMwt57UtoX1nvQwL3rNu8kpjNSjc -> 3063
BLnyoM7SZu3zZiKRwo2wfGARVgq7HWjEwrNHCJjK7Z31qp8T4sA -> 3048
BLE1EvesaLM1rWV219XvSUsXwCEc7jy79NHjGzebkEnug99bEGL -> 3074
BMZtWVYgBhXr6kCfmWzPsWqdHzLYQmobVFSovpWgTjw4yNDfJ4n -> 2986
BM42n8vn2r363FrYg9hqZo53eiW8Mc1wmWUgsM5ALZXmK7Qnqj9 -> 3003
BLppLz7zbzZwLLEScgXU9YW59t9LAXhN5XPM6WBMzR9m9BXpjfo -> 3065
Total applied transactions: 30473
Total injected transactions: 31659
TPS of injection (target): 114
TPS of injection (de facto): 105.25
Empirical TPS: 101.31
[13:48:25.390] [SUCCESS] (1/1) tezos_tps_benchmark
Note that the target TPS of injection is 114, but the de facto TPS of injection is only 105.25. Given that we know with certainty that stress test is capable of injecting at much higher rates, this TPS gap is strange. It would be nice to close it.