Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Encointer benchmarks #155

Closed
bkontur opened this issue Jan 22, 2024 · 7 comments · Fixed by #177
Closed

Fix Encointer benchmarks #155

bkontur opened this issue Jan 22, 2024 · 7 comments · Fixed by #177

Comments

@bkontur
Copy link
Contributor

bkontur commented Jan 22, 2024

I fixed one for frame_system::set_code here,
but there are several others failing (probably easy to fix e.g. "attempt to divide by zero"):

...

Created file: "./encointer-kusama-weights/pallet_balances.rs"
Running benchmarks for pallet_collective to ./encointer-kusama-weights/
2024-01-22 16:55:50 Starting benchmark: pallet_collective::set_members    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::execute    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::propose_execute    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::propose_proposed    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::vote    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::close_early_disapproved    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::close_early_approved    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::close_disapproved    
2024-01-22 16:55:51 Starting benchmark: pallet_collective::close_approved    
Pallet: "pallet_collective", Extrinsic: "set_members", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Members` (r:1 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Voting` (r:100 w:100)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + m    8.286
    + n        0
    + p    8.239
              µs

Reads = 0 + (1 * m) + (0 * n) + (1 * p)
Writes = 0 + (1 * m) + (0 * n) + (1 * p)
Recorded proof Size = 0 + (3224 * m) + (0 * n) + (3191 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    m     n     p   mean µs  sigma µs       %
    0   100   100     15.99         0    0.0%
  100     0   100     867.4         0    0.0%
  100   100     0     20.72         0    0.0%
  100   100   100     845.9     29.96    3.5%

Quality and confidence:
param     error
m         1.871
n         1.871
p         1.871

Model:
Time ~=    15.99
    + m    5.208
    + n        0
    + p    5.161
              µs

Reads = 2 + (1 * m) + (0 * n) + (1 * p)
Writes = 2 + (1 * m) + (0 * n) + (1 * p)
Recorded proof Size = 66 + (1996 * m) + (0 * n) + (1964 * p)

Pallet: "pallet_collective", Extrinsic: "execute", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    11.96
    + b        0
    + m    0.014
              µs

Reads = 1 + (0 * b) + (0 * m)
Writes = 0 + (0 * b) + (0 * m)
Recorded proof Size = 68 + (0 * b) + (32 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    b     m   mean µs  sigma µs       %
    2   100     13.45         0    0.0%
 1024     1     12.56         0    0.0%
 1024   100     13.68     0.349    2.5%

Quality and confidence:
param     error
b             0
m         0.006

Model:
Time ~=    12.31
    + b        0
    + m    0.011
              µs

Reads = 1 + (0 * b) + (0 * m)
Writes = 0 + (0 * b) + (0 * m)
Recorded proof Size = 69 + (0 * b) + (32 * m)

Pallet: "pallet_collective", Extrinsic: "propose_execute", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:1 w:0)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    11.97
    + b    0.002
    + m    0.037
              µs

Reads = 2 + (0 * b) + (0 * m)
Writes = 0 + (0 * b) + (0 * m)
Recorded proof Size = 68 + (0 * b) + (32 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    b     m   mean µs  sigma µs       %
    2   100     15.72         0    0.0%
 1024     1     15.03         0    0.0%
 1024   100     17.69     1.039    5.8%

Quality and confidence:
param     error
b         0.001
m         0.018

Model:
Time ~=    13.02
    + b    0.001
    + m    0.026
              µs

Reads = 2 + (0 * b) + (0 * m)
Writes = 0 + (0 * b) + (0 * m)
Recorded proof Size = 69 + (0 * b) + (32 * m)

Pallet: "pallet_collective", Extrinsic: "propose_proposed", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:1 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalCount` (r:1 w:1)
Proof: `Collective::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Voting` (r:0 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.27
    + b    0.001
    + m     0.04
    + p    0.117
              µs

Reads = 4 + (0 * b) + (0 * m) + (0 * p)
Writes = 4 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 4 + (0 * b) + (32 * m) + (39 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    b     m     p   mean µs  sigma µs       %
    2   100   100     31.07         0    0.0%
 1024     2   100     28.57         0    0.0%
 1024   100     1     20.93         0    0.0%
 1024   100   100     37.43     7.108   18.9%

Quality and confidence:
param     error
b         0.009
m         0.102
p         0.101

Model:
Time ~=    5.363
    + b    0.006
    + m     0.09
    + p    0.166
              µs

Reads = 4 + (0 * b) + (0 * m) + (0 * p)
Writes = 4 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 4 + (0 * b) + (32 * m) + (39 * p)

Pallet: "pallet_collective", Extrinsic: "vote", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Voting` (r:1 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.13
    + m    0.031
              µs

Reads = 2 + (0 * m)
Writes = 1 + (0 * m)
Recorded proof Size = 807 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.25
              µs

Reads = 2
Writes = 1
Recorded proof Size = 7210

Pallet: "pallet_collective", Extrinsic: "close_early_disapproved", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Voting` (r:1 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:0 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.48
    + m    0.053
    + p    0.141
              µs

Reads = 3 + (0 * m) + (0 * p)
Writes = 3 + (0 * m) + (0 * p)
Recorded proof Size = 181 + (64 * m) + (38 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    m     p   mean µs  sigma µs       %
    4   100     27.89         0    0.0%
  100     1     18.96         0    0.0%
  100   100     31.39     1.627    5.1%

Quality and confidence:
param     error
m         0.029
p         0.028

Model:
Time ~=    15.19
    + m    0.036
    + p    0.125
              µs

Reads = 3 + (0 * m) + (0 * p)
Writes = 3 + (0 * m) + (0 * p)
Recorded proof Size = 181 + (64 * m) + (39 * p)

Pallet: "pallet_collective", Extrinsic: "close_early_approved", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Voting` (r:1 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:1 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    24.77
    + b        0
    + m    0.027
    + p    0.165
              µs

Reads = 4 + (0 * b) + (0 * m) + (0 * p)
Writes = 3 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 396 + (0 * b) + (64 * m) + (44 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    b     m     p   mean µs  sigma µs       %
    2   100   100     44.07         0    0.0%
 1024     4   100     42.11         0    0.0%
 1024   100     1     28.29         0    0.0%
 1024   100   100     44.43     0.428    0.9%

Quality and confidence:
param     error
b             0
m         0.006
p         0.006

Model:
Time ~=    25.36
    + b        0
    + m    0.024
    + p    0.163
              µs

Reads = 4 + (0 * b) + (0 * m) + (0 * p)
Writes = 3 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 396 + (1 * b) + (64 * m) + (45 * p)

Pallet: "pallet_collective", Extrinsic: "close_disapproved", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Voting` (r:1 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:1 w:0)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:0 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.41
    + m    0.061
    + p    0.166
              µs

Reads = 4 + (0 * m) + (0 * p)
Writes = 3 + (0 * m) + (0 * p)
Recorded proof Size = 201 + (64 * m) + (38 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    m     p   mean µs  sigma µs       %
    4   100     30.35         0    0.0%
  100     1     19.71         0    0.0%
  100   100     35.68      0.56    1.5%

Quality and confidence:
param     error
m          0.01
p         0.009

Model:
Time ~=       14
    + m    0.055
    + p    0.161
              µs

Reads = 4 + (0 * m) + (0 * p)
Writes = 3 + (0 * m) + (0 * p)
Recorded proof Size = 201 + (64 * m) + (39 * p)

Pallet: "pallet_collective", Extrinsic: "close_approved", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Voting` (r:1 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Members` (r:1 w:0)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:1 w:0)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:1 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    29.41
    + b        0
    + m    0.026
    + p    0.177
              µs

Reads = 5 + (0 * b) + (0 * m) + (0 * p)
Writes = 3 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 416 + (0 * b) + (64 * m) + (44 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    b     m     p   mean µs  sigma µs       %
    2   100   100     49.83         0    0.0%
 1024     4   100     45.17         0    0.0%
 1024   100     1     30.17         0    0.0%
 1024   100   100     50.36     3.855    7.6%

Quality and confidence:
param     error
b         0.005
m         0.056
p         0.055

Model:
Time ~=    24.04
    + b        0
    + m    0.054
    + p    0.203
              µs

Reads = 5 + (0 * b) + (0 * m) + (0 * p)
Writes = 3 + (0 * b) + (0 * m) + (0 * p)
Recorded proof Size = 416 + (1 * b) + (64 * m) + (45 * p)

Pallet: "pallet_collective", Extrinsic: "disapprove_proposal", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Collective::Proposals` (r:1 w:1)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Voting` (r:0 w:1)
Proof: `Collective::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `Collective::ProposalOf` (r:0 w:1)
Proof: `Collective::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     10.6
    + p    0.096
              µs

Reads = 1 + (0 * p)
Writes = 3 + (0 * p)
Recorded proof Size = 224 + (32 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    20.28
              µs

Reads = 1
Writes = 3
Recorded proof Size = 3427

2024-01-22 16:55:51 Starting benchmark: pallet_collective::disapprove_proposal    
Created file: "./encointer-kusama-weights/pallet_collective.rs"
Running benchmarks for pallet_encointer_balances to ./encointer-kusama-weights/
Pallet: "pallet_encointer_balances", Extrinsic: "transfer", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `EncointerBalances::Balance` (r:2 w:2)
Proof: `EncointerBalances::Balance` (`max_values`: None, `max_size`: Some(93), added: 2568, mode: `MaxEncodedLen`)
Storage: `EncointerBalances::DemurragePerBlock` (r:1 w:0)
Proof: `EncointerBalances::DemurragePerBlock` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:1 w:1)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    40.74
              µs

Reads = 4
Writes = 3
Recorded proof Size = 235

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    40.74
              µs

Reads = 4
Writes = 3
Recorded proof Size = 235

Pallet: "pallet_encointer_balances", Extrinsic: "transfer_all", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `EncointerBalances::Balance` (r:2 w:2)
Proof: `EncointerBalances::Balance` (`max_values`: None, `max_size`: Some(93), added: 2568, mode: `MaxEncodedLen`)
Storage: `EncointerBalances::DemurragePerBlock` (r:1 w:0)
Proof: `EncointerBalances::DemurragePerBlock` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:2 w:2)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     54.8
              µs

Reads = 5
Writes = 4
Recorded proof Size = 338

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     54.8
              µs

Reads = 5
Writes = 4
Recorded proof Size = 338

Pallet: "pallet_encointer_balances", Extrinsic: "set_fee_conversion_factor", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `EncointerBalances::FeeConversionFactor` (r:0 w:1)
Proof: `EncointerBalances::FeeConversionFactor` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.49
              µs

Reads = 0
Writes = 1
Recorded proof Size = 0

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.49
              µs

Reads = 0
Writes = 1
Recorded proof Size = 0

2024-01-22 16:55:52 Starting benchmark: pallet_encointer_balances::transfer    
2024-01-22 16:55:52 Starting benchmark: pallet_encointer_balances::transfer_all    
2024-01-22 16:55:52 Starting benchmark: pallet_encointer_balances::set_fee_conversion_factor    
2024-01-22 16:55:52 set fee conversion factor to 1    
2024-01-22 16:55:52 set fee conversion factor to 1    
2024-01-22 16:55:52 set fee conversion factor to 1    
Created file: "./encointer-kusama-weights/pallet_encointer_balances.rs"
Running benchmarks for pallet_encointer_bazaar to ./encointer-kusama-weights/
2024-01-22 16:55:53 Starting benchmark: pallet_encointer_bazaar::create_business    
2024-01-22 16:55:53 panicked at /home/bparity/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pallet-encointer-communities-3.0.2/src/lib.rs:546:23:
attempt to divide by zero    
Error: 
   0: Invalid input: Error executing and verifying runtime benchmark: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
      WASM backtrace:
      error while executing at wasm backtrace:
          0: 0x4ddc - <unknown>!rust_begin_unwind
          1: 0x2470 - <unknown>!core::panicking::panic_fmt::hd79411a297d06dc8
          2: 0x4ade - <unknown>!core::panicking::panic::hd37d8d0a98259c88
          3: 0x98ef2 - <unknown>!pallet_encointer_communities::<impl pallet_encointer_communities::pallet::Pallet<T>>::validate_location::h9d893732d1ca0031
          4: 0x931b9 - <unknown>!pallet_encointer_communities::pallet::Pallet<T>::new_community::h85076daf4e2da290
          5: 0x291a3d - <unknown>!pallet_encointer_bazaar::benchmarking::create_community::h4444360ac37b2072
          6: 0x27c53e - <unknown>!<encointer_kusama_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_benchmark::BenchmarkV1<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,encointer_kusama_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_spec_version::CheckSpecVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<encointer_kusama_runtime::Runtime>,pallet_asset_tx_payment::ChargeAssetTxPayment<encointer_kusama_runtime::Runtime>)>>>>::dispatch_benchmark::hddfe61b935a99018
          7: 0x30646d - <unknown>!Benchmark_dispatch_benchmark

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-01-22 16:55:53 1 storage transactions are left open by the runtime. Those will be rolled back.    
2024-01-22 16:55:53 1 storage transactions are left open by the runtime. Those will be rolled back.    
Running benchmarks for pallet_encointer_ceremonies to ./encointer-kusama-weights/
2024-01-22 16:55:54 Starting benchmark: pallet_encointer_ceremonies::register_participant    
2024-01-22 16:55:54 panicked at /home/bparity/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pallet-encointer-communities-3.0.2/src/lib.rs:546:23:
attempt to divide by zero    
2024-01-22 16:55:54 1 storage transactions are left open by the runtime. Those will be rolled back.    
2024-01-22 16:55:54 1 storage transactions are left open by the runtime. Those will be rolled back.    
Error: 
   0: Invalid input: Error executing and verifying runtime benchmark: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
      WASM backtrace:
      error while executing at wasm backtrace:
          0: 0x4ddc - <unknown>!rust_begin_unwind
          1: 0x2470 - <unknown>!core::panicking::panic_fmt::hd79411a297d06dc8
          2: 0x4ade - <unknown>!core::panicking::panic::hd37d8d0a98259c88
          3: 0x98ef2 - <unknown>!pallet_encointer_communities::<impl pallet_encointer_communities::pallet::Pallet<T>>::validate_location::h9d893732d1ca0031
          4: 0x931b9 - <unknown>!pallet_encointer_communities::pallet::Pallet<T>::new_community::h85076daf4e2da290
          5: 0x2a042f - <unknown>!pallet_encointer_ceremonies::benchmarking::create_community::h320f865da7db3304
          6: 0x291dab - <unknown>!<pallet_encointer_ceremonies::benchmarking::SelectedBenchmark as frame_benchmarking::utils::BenchmarkingSetup<T>>::instance::h8f9439e6c1aea178
          7: 0x27e975 - <unknown>!<encointer_kusama_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_benchmark::BenchmarkV1<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,encointer_kusama_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_spec_version::CheckSpecVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<encointer_kusama_runtime::Runtime>,pallet_asset_tx_payment::ChargeAssetTxPayment<encointer_kusama_runtime::Runtime>)>>>>::dispatch_benchmark::hddfe61b935a99018
          8: 0x30646d - <unknown>!Benchmark_dispatch_benchmark

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Running benchmarks for pallet_encointer_communities to ./encointer-kusama-weights/
2024-01-22 16:55:55 Starting benchmark: pallet_encointer_communities::new_community    
2024-01-22 16:55:55 panicked at /home/bparity/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pallet-encointer-communities-3.0.2/src/lib.rs:546:23:
attempt to divide by zero    
Error: 
   0: Invalid input: Error executing and verifying runtime benchmark: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
      WASM backtrace:
      error while executing at wasm backtrace:
          0: 0x4ddc - <unknown>!rust_begin_unwind
          1: 0x2470 - <unknown>!core::panicking::panic_fmt::hd79411a297d06dc8
          2: 0x4ade - <unknown>!core::panicking::panic::hd37d8d0a98259c88
          3: 0x98ef2 - <unknown>!pallet_encointer_communities::<impl pallet_encointer_communities::pallet::Pallet<T>>::validate_location::h9d893732d1ca0031
          4: 0x931b9 - <unknown>!pallet_encointer_communities::pallet::Pallet<T>::new_community::h85076daf4e2da290
          5: 0x29518b - <unknown>!pallet_encointer_communities::benchmarking::setup_test_community::h78fab09c1fb81085
          6: 0x27fc7e - <unknown>!<encointer_kusama_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_benchmark::BenchmarkV1<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,encointer_kusama_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_spec_version::CheckSpecVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<encointer_kusama_runtime::Runtime>,pallet_asset_tx_payment::ChargeAssetTxPayment<encointer_kusama_runtime::Runtime>)>>>>::dispatch_benchmark::hddfe61b935a99018
          7: 0x30646d - <unknown>!Benchmark_dispatch_benchmark

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-01-22 16:55:55 1 storage transactions are left open by the runtime. Those will be rolled back.    
2024-01-22 16:55:55 1 storage transactions are left open by the runtime. Those will be rolled back.    
Running benchmarks for pallet_encointer_faucet to ./encointer-kusama-weights/
2024-01-22 16:55:56 Starting benchmark: pallet_encointer_faucet::create_faucet    
2024-01-22 16:55:56 panicked at /home/bparity/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pallet-encointer-communities-3.0.2/src/lib.rs:546:23:
attempt to divide by zero    
Error: 
   0: Invalid input: Error executing and verifying runtime benchmark: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
      WASM backtrace:
      error while executing at wasm backtrace:
          0: 0x4ddc - <unknown>!rust_begin_unwind
          1: 0x2470 - <unknown>!core::panicking::panic_fmt::hd79411a297d06dc8
          2: 0x4ade - <unknown>!core::panicking::panic::hd37d8d0a98259c88
          3: 0x98ef2 - <unknown>!pallet_encointer_communities::<impl pallet_encointer_communities::pallet::Pallet<T>>::validate_location::h9d893732d1ca0031
          4: 0x931b9 - <unknown>!pallet_encointer_communities::pallet::Pallet<T>::new_community::h85076daf4e2da290
          5: 0x2a1cf7 - <unknown>!pallet_encointer_faucet::benchmarking::create_community::h4c9ec25964919234
          6: 0x295eb7 - <unknown>!pallet_encointer_faucet::benchmarking::<impl frame_benchmarking::utils::Benchmarking for pallet_encointer_faucet::pallet::Pallet<T>>::run_benchmark::h7f9e6aeff4d45377
          7: 0x281a09 - <unknown>!<encointer_kusama_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_benchmark::BenchmarkV1<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,encointer_kusama_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_spec_version::CheckSpecVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<encointer_kusama_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<encointer_kusama_runtime::Runtime>,pallet_asset_tx_payment::ChargeAssetTxPayment<encointer_kusama_runtime::Runtime>)>>>>::dispatch_benchmark::hddfe61b935a99018
          8: 0x30646d - <unknown>!Benchmark_dispatch_benchmark

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-01-22 16:55:56 1 storage transactions are left open by the runtime. Those will be rolled back.    
2024-01-22 16:55:56 1 storage transactions are left open by the runtime. Those will be rolled back.    
Running benchmarks for pallet_encointer_reputation_commitments to ./encointer-kusama-weights/
Pallet: "pallet_encointer_reputation_commitments", Extrinsic: "register_purpose", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `EncointerReputationCommitments::CurrentPurposeId` (r:1 w:1)
Proof: `EncointerReputationCommitments::CurrentPurposeId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
Storage: `EncointerReputationCommitments::Purposes` (r:0 w:1)
Proof: `EncointerReputationCommitments::Purposes` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.67
              µs

Reads = 1
Writes = 2
Recorded proof Size = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.67
              µs

Reads = 1
Writes = 2
Recorded proof Size = 4

Pallet: "pallet_encointer_reputation_commitments", Extrinsic: "commit_reputation", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `EncointerReputationCommitments::Purposes` (r:1 w:0)
Proof: `EncointerReputationCommitments::Purposes` (`max_values`: None, `max_size`: Some(138), added: 2613, mode: `MaxEncodedLen`)
Storage: `EncointerCeremonies::ParticipantReputation` (r:1 w:0)
Proof: `EncointerCeremonies::ParticipantReputation` (`max_values`: None, `max_size`: None, mode: `Measured`)
Storage: `EncointerReputationCommitments::Commitments` (r:1 w:1)
Proof: `EncointerReputationCommitments::Commitments` (`max_values`: None, `max_size`: Some(102), added: 2577, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    25.34
              µs

Reads = 3
Writes = 1
Recorded proof Size = 329

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    25.34
              µs

Reads = 3
Writes = 1
Recorded proof Size = 329

Created file: "./encointer-kusama-weights/pallet_encointer_reputation_commitments.rs"
2024-01-22 16:55:57 Starting benchmark: pallet_encointer_reputation_commitments::register_purpose    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 68, 101, 115, 99, 114, 105, 112, 116, 111, 114], 128)    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 68, 101, 115, 99, 114, 105, 112, 116, 111, 114], 128)    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 68, 101, 115, 99, 114, 105, 112, 116, 111, 114], 128)    
2024-01-22 16:55:57 Starting benchmark: pallet_encointer_reputation_commitments::commit_reputation    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 70, 97, 117, 99, 101, 116, 32, 78, 97, 109, 101], 128)    
2024-01-22 16:55:57  commited reputation for cid 1111 at cindex 10 for purposed id 0    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 70, 97, 117, 99, 101, 116, 32, 78, 97, 109, 101], 128)    
2024-01-22 16:55:57  commited reputation for cid 1111 at cindex 10 for purposed id 0    
2024-01-22 16:55:57 commitment purpose registered: 0, BoundedVec([83, 111, 109, 101, 32, 70, 97, 117, 99, 101, 116, 32, 78, 97, 109, 101], 128)    
2024-01-22 16:55:57  commited reputation for cid 1111 at cindex 10 for purposed id 0    
Running benchmarks for pallet_encointer_scheduler to ./encointer-kusama-weights/
Error: 
   0: Invalid input: Benchmark pallet_encointer_scheduler::next_phase failed: DivisionByZero

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-01-22 16:55:58 Starting benchmark: pallet_encointer_scheduler::next_phase    
2024-01-22 16:55:58 new ceremony phase with index 1    
Running benchmarks for pallet_membership to ./encointer-kusama-weights/
2024-01-22 16:55:59 Starting benchmark: pallet_membership::add_member    
2024-01-22 16:55:59 Starting benchmark: pallet_membership::remove_member    
2024-01-22 16:55:59 Starting benchmark: pallet_membership::swap_member    
Pallet: "pallet_membership", Extrinsic: "add_member", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:1)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Members` (r:0 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.92
    + m    0.011
              µs

Reads = 2 + (0 * m)
Writes = 3 + (0 * m)
Recorded proof Size = 99 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    12.03
              µs

Reads = 2
Writes = 3
Recorded proof Size = 6440

Pallet: "pallet_membership", Extrinsic: "remove_member", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:1)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Membership::Prime` (r:1 w:0)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Members` (r:0 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    11.73
    + m     0.01
              µs

Reads = 3 + (0 * m)
Writes = 3 + (0 * m)
Recorded proof Size = 205 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    12.76
              µs

Reads = 3
Writes = 3
Recorded proof Size = 6608

Pallet: "pallet_membership", Extrinsic: "swap_member", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:1)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Membership::Prime` (r:1 w:0)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Members` (r:0 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.72
    + m    0.029
              µs

Reads = 3 + (0 * m)
Writes = 3 + (0 * m)
Recorded proof Size = 205 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.72
              µs

Reads = 3
Writes = 3
Recorded proof Size = 6608

Pallet: "pallet_membership", Extrinsic: "reset_member", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:1)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Membership::Prime` (r:1 w:0)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Members` (r:0 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.53
    + m    0.135
              µs

Reads = 3 + (0 * m)
Writes = 3 + (0 * m)
Recorded proof Size = 203 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    24.06
              µs

Reads = 3
Writes = 3
Recorded proof Size = 6608

Pallet: "pallet_membership", Extrinsic: "change_key", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:1)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Collective::Proposals` (r:1 w:0)
Proof: `Collective::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Membership::Prime` (r:1 w:1)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Members` (r:0 w:1)
Proof: `Collective::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    10.96
    + m    0.025
              µs

Reads = 3 + (0 * m)
Writes = 4 + (0 * m)
Recorded proof Size = 203 + (64 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    13.54
              µs

Reads = 3
Writes = 4
Recorded proof Size = 6608

Pallet: "pallet_membership", Extrinsic: "set_prime", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Members` (r:1 w:0)
Proof: `Membership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
Storage: `Membership::Prime` (r:0 w:1)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    4.636
    + m    0.006
              µs

Reads = 1 + (0 * m)
Writes = 2 + (0 * m)
Recorded proof Size = 30 + (32 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    5.288
              µs

Reads = 1
Writes = 2
Recorded proof Size = 3233

Pallet: "pallet_membership", Extrinsic: "clear_prime", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Membership::Prime` (r:0 w:1)
Proof: `Membership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
Storage: `Collective::Prime` (r:0 w:1)
Proof: `Collective::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    2.005
    + m        0
              µs

Reads = 0 + (0 * m)
Writes = 2 + (0 * m)
Recorded proof Size = 0 + (0 * m)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    2.094
              µs

Reads = 0
Writes = 2
Recorded proof Size = 0

Created file: "./encointer-kusama-weights/pallet_membership.rs"
2024-01-22 16:55:59 Starting benchmark: pallet_membership::reset_member    
2024-01-22 16:55:59 Starting benchmark: pallet_membership::change_key    
2024-01-22 16:55:59 Starting benchmark: pallet_membership::set_prime    
2024-01-22 16:55:59 Starting benchmark: pallet_membership::clear_prime    
Running benchmarks for pallet_proxy to ./encointer-kusama-weights/
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::proxy    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::proxy_announced    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::remove_announcement    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::reject_announcement    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::announce    
Pallet: "pallet_proxy", Extrinsic: "proxy", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:0)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    22.15
    + p        0
              µs

Reads = 1 + (0 * p)
Writes = 0 + (0 * p)
Recorded proof Size = 125 + (37 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.95
              µs

Reads = 1
Writes = 0
Recorded proof Size = 1274

Pallet: "pallet_proxy", Extrinsic: "proxy_announced", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:0)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
Storage: `Proxy::Announcements` (r:1 w:1)
Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:1 w:1)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    27.11
    + a    0.044
    + p    0.263
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 488 + (68 * a) + (35 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    a     p   mean µs  sigma µs       %
    0    31     35.28         0    0.0%
   31     1     28.74         0    0.0%
   31    31     33.18      3.46   10.4%

Quality and confidence:
param     error
a         0.193
p         0.199

Model:
Time ~=    30.68
    + a        0
    + p    0.148
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 488 + (68 * a) + (36 * p)

Pallet: "pallet_proxy", Extrinsic: "remove_announcement", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Announcements` (r:1 w:1)
Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:1 w:1)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.17
    + a    0.083
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 404 + (68 * a) + (0 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    a     p   mean µs  sigma µs       %
    0    31     18.03         0    0.0%
   31     1     20.76         0    0.0%
   31    31     20.51      0.12    0.5%

Quality and confidence:
param     error
a         0.006
p         0.006

Model:
Time ~=    18.29
    + a    0.079
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 404 + (68 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "reject_announcement", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Announcements` (r:1 w:1)
Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:1 w:1)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.55
    + a    0.155
    + p    0.014
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 404 + (68 * a) + (0 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    a     p   mean µs  sigma µs       %
    0    31     18.99         0    0.0%
   31     1     23.39         0    0.0%
   31    31     22.38      1.44    6.4%

Quality and confidence:
param     error
a          0.08
p         0.083

Model:
Time ~=    20.04
    + a    0.109
    + p        0
              µs

Reads = 2 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 404 + (68 * a) + (0 * p)

Pallet: "pallet_proxy", Extrinsic: "announce", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:0)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
Storage: `Proxy::Announcements` (r:1 w:1)
Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
Storage: `System::Account` (r:1 w:1)
Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    24.37
    + a    0.112
    + p    0.054
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 339 + (70 * a) + (35 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    a     p   mean µs  sigma µs       %
    0    31     26.06         0    0.0%
   31     1     27.91         0    0.0%
   31    31     29.33     0.214    0.7%

Quality and confidence:
param     error
a         0.011
p         0.012

Model:
Time ~=    24.59
    + a    0.105
    + p    0.047
              µs

Reads = 3 + (0 * a) + (0 * p)
Writes = 2 + (0 * a) + (0 * p)
Recorded proof Size = 339 + (71 * a) + (36 * p)

Pallet: "pallet_proxy", Extrinsic: "add_proxy", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:1)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.01
    + p    0.007
              µs

Reads = 1 + (0 * p)
Writes = 1 + (0 * p)
Recorded proof Size = 125 + (37 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.25
              µs

Reads = 1
Writes = 1
Recorded proof Size = 1274

Pallet: "pallet_proxy", Extrinsic: "remove_proxy", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:1)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.91
    + p     0.02
              µs

Reads = 1 + (0 * p)
Writes = 1 + (0 * p)
Recorded proof Size = 125 + (37 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.53
              µs

Reads = 1
Writes = 1
Recorded proof Size = 1274

Pallet: "pallet_proxy", Extrinsic: "remove_proxies", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:1)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.95
    + p        0
              µs

Reads = 1 + (0 * p)
Writes = 1 + (0 * p)
Recorded proof Size = 125 + (37 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.95
              µs

Reads = 1
Writes = 1
Recorded proof Size = 1274

Pallet: "pallet_proxy", Extrinsic: "create_pure", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:1)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.89
    + p        0
              µs

Reads = 1 + (0 * p)
Writes = 1 + (0 * p)
Recorded proof Size = 139 + (0 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    21.82
              µs

Reads = 1
Writes = 1
Recorded proof Size = 139

Pallet: "pallet_proxy", Extrinsic: "kill_pure", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Proxy::Proxies` (r:1 w:1)
Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.26
    + p    0.021
              µs

Reads = 1 + (0 * p)
Writes = 1 + (0 * p)
Recorded proof Size = 163 + (37 * p)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    18.91
              µs

Reads = 1
Writes = 1
Recorded proof Size = 1274

Created file: "./encointer-kusama-weights/pallet_proxy.rs"
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::add_proxy    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::remove_proxy    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::remove_proxies    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::create_pure    
2024-01-22 16:56:00 Starting benchmark: pallet_proxy::kill_pure    
Running benchmarks for pallet_timestamp to ./encointer-kusama-weights/
Pallet: "pallet_timestamp", Extrinsic: "set", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========
Storage: `Timestamp::Now` (r:1 w:1)
Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
Storage: `EncointerScheduler::NextPhaseTimestamp` (r:1 w:0)
Proof: `EncointerScheduler::NextPhaseTimestamp` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
Storage: `EncointerScheduler::CurrentCeremonyIndex` (r:1 w:1)
Proof: `EncointerScheduler::CurrentCeremonyIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
Storage: `EncointerScheduler::PhaseDurations` (r:3 w:0)
Proof: `EncointerScheduler::PhaseDurations` (`max_values`: None, `max_size`: Some(25), added: 2500, mode: `MaxEncodedLen`)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    22.02
              µs

Reads = 6
Writes = 2
Recorded proof Size = 95

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    22.02
              µs

Reads = 6
Writes = 2
Recorded proof Size = 95

Pallet: "pallet_timestamp", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.282
              µs

Reads = 0
Writes = 0
Recorded proof Size = 94

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.282
              µs

Reads = 0
Writes = 0
Recorded proof Size = 94

2024-01-22 16:56:01 Starting benchmark: pallet_timestamp::set    
2024-01-22 16:56:01 resync ceremony phase failed    
2024-01-22 16:56:01 resync ceremony phase failed    
2024-01-22 16:56:01 resync ceremony phase failed    
2024-01-22 16:56:01 Starting benchmark: pallet_timestamp::on_finalize    
2024-01-22 16:56:01 resync ceremony phase failed    
2024-01-22 16:56:01 resync ceremony phase failed    
2024-01-22 16:56:01 resync ceremony phase failed    
Created file: "./encointer-kusama-weights/pallet_timestamp.rs"
Running benchmarks for pallet_treasury to ./encointer-kusama-weights/
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::spend_local    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend_local    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend_local    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend_local    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::propose_spend    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::reject_proposal    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::approve_proposal    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::remove_approval    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::on_initialize_proposals    
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::spend    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend    
2024-01-22 16:56:02 WARNING: benchmark weightless skipped - spend    
Error: 
   0: Invalid input: Benchmark pallet_treasury::payout failed: No origin

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-01-22 16:56:02 Starting benchmark: pallet_treasury::payout    
Running benchmarks for pallet_utility to ./encointer-kusama-weights/
Pallet: "pallet_utility", Extrinsic: "batch", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.247
    + c    2.771
              µs

Reads = 0 + (0 * c)
Writes = 0 + (0 * c)
Recorded proof Size = 0 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     2779
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Pallet: "pallet_utility", Extrinsic: "as_derivative", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.709
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.709
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Pallet: "pallet_utility", Extrinsic: "batch_all", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    6.946
    + c    2.722
              µs

Reads = 0 + (0 * c)
Writes = 0 + (0 * c)
Recorded proof Size = 0 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     2729
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Pallet: "pallet_utility", Extrinsic: "dispatch_as", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.533
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.533
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

Pallet: "pallet_utility", Extrinsic: "force_batch", Lowest values: [], Highest values: [], Steps: 2, Repeat: 1
Raw Storage Info
========

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    6.795
    + c    2.556
              µs

Reads = 0 + (0 * c)
Writes = 0 + (0 * c)
Recorded proof Size = 0 + (0 * c)

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     2563
              µs

Reads = 0
Writes = 0
Recorded proof Size = 0

2024-01-22 16:56:03 Starting benchmark: pallet_utility::batch    
2024-01-22 16:56:03 Starting benchmark: pallet_utility::as_derivative    
2024-01-22 16:56:03 Starting benchmark: pallet_utility::batch_all    
2024-01-22 16:56:03 Starting benchmark: pallet_utility::dispatch_as    
2024-01-22 16:56:03 Starting benchmark: pallet_utility::force_batch    
Created file: "./encointer-kusama-weights/pallet_utility.rs"

@bkontur
Copy link
Contributor Author

bkontur commented Jan 22, 2024

cc: @brenzi

@bkchr
Copy link
Contributor

bkchr commented Feb 2, 2024

@brenzi are you working on this?

@brenzi
Copy link
Contributor

brenzi commented Feb 3, 2024

Planned for next week

@brenzi
Copy link
Contributor

brenzi commented Feb 6, 2024

@bkontur how did you run those benchmarks? How can I reproduce your error?
I need to catch up with our collator binary before I can run benchmarks there. But you seem to have used another way

@bkontur
Copy link
Contributor Author

bkontur commented Feb 6, 2024

I just follow this: https://github.com/polkadot-fellows/runtimes/blob/main/docs/weight-generation.md

so basically just these steps:

# 1.
cargo build -p chain-spec-generator --profile production --features runtime-benchmarks

# 2.
./target/production/chain-spec-generator --raw encointer-kusama-local > encointer-kusama-chain-spec.json

# 3. add that bash script from `weight-generation.md` to the `bench.sh`

# 4.
./bench.sh encointer-kusama

@brenzi
Copy link
Contributor

brenzi commented Feb 7, 2024

thanks @bkontur, that worked nicely (need to build polkadot-parachain binary, not polkadot)

fellowship-merge-bot bot pushed a commit that referenced this issue Feb 13, 2024
closes #155 


<!-- Remember that you can run `/merge` to enable auto-merge in the PR
-->

<!-- Remember to modify the changelog. If you don't need to modify it,
you can check the following box.
Instead, if you have already modified it, simply delete the following
line. -->

- [x] Does not require a CHANGELOG entry

---------

Co-authored-by: Bastian Köcher <[email protected]>
@brenzi
Copy link
Contributor

brenzi commented Feb 14, 2024

this should've been closed by #177

@bkchr bkchr closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants