Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
max-dfinity committed Feb 4, 2025
1 parent a3bef5b commit b1715d5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 29 deletions.
68 changes: 40 additions & 28 deletions rs/nns/governance/canbench/canbench_results.yml
Original file line number Diff line number Diff line change
@@ -1,169 +1,181 @@
benches:
add_neuron_active_maximum:
total:
instructions: 42752796
instructions: 42752810
heap_increase: 1
stable_memory_increase: 0
scopes: {}
add_neuron_active_typical:
total:
instructions: 2170658
instructions: 2170672
heap_increase: 0
stable_memory_increase: 0
scopes: {}
add_neuron_inactive_maximum:
total:
instructions: 112624375
instructions: 112624946
heap_increase: 1
stable_memory_increase: 0
scopes: {}
add_neuron_inactive_typical:
total:
instructions: 8497036
instructions: 8497607
heap_increase: 0
stable_memory_increase: 0
scopes: {}
cascading_vote_all_heap:
total:
instructions: 35676146
instructions: 35610228
heap_increase: 0
stable_memory_increase: 128
scopes: {}
cascading_vote_heap_neurons_stable_index:
total:
instructions: 61811185
instructions: 61744033
heap_increase: 0
stable_memory_increase: 128
scopes: {}
cascading_vote_stable_everything:
total:
instructions: 188611915
instructions: 189084050
heap_increase: 0
stable_memory_increase: 128
scopes: {}
cascading_vote_stable_neurons_with_heap_index:
total:
instructions: 162343480
instructions: 162816849
heap_increase: 0
stable_memory_increase: 128
scopes: {}
centralized_following_all_stable:
total:
instructions: 78265237
instructions: 78519736
heap_increase: 0
stable_memory_increase: 128
scopes: {}
compute_ballots_for_new_proposal_with_stable_neurons:
total:
instructions: 2230000
instructions: 2265911
heap_increase: 0
stable_memory_increase: 0
scopes: {}
draw_maturity_from_neurons_fund_heap:
total:
instructions: 7656798
instructions: 7607998
heap_increase: 0
stable_memory_increase: 0
scopes: {}
draw_maturity_from_neurons_fund_stable:
total:
instructions: 12339498
instructions: 12444384
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_active_neurons_fund_neurons_heap:
total:
instructions: 435463
instructions: 435492
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_active_neurons_fund_neurons_stable:
total:
instructions: 2820000
instructions: 2819667
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_neurons_by_subaccount_heap:
total:
instructions: 7551696
heap_increase: 9
stable_memory_increase: 0
scopes: {}
list_neurons_by_subaccount_stable:
total:
instructions: 111661652
heap_increase: 5
stable_memory_increase: 0
scopes: {}
list_neurons_heap:
total:
instructions: 4950000
instructions: 4963821
heap_increase: 9
stable_memory_increase: 0
scopes: {}
list_neurons_ready_to_unstake_maturity_heap:
total:
instructions: 158253
instructions: 158195
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_neurons_ready_to_unstake_maturity_stable:
total:
instructions: 43300000
instructions: 43332558
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_neurons_stable:
total:
instructions: 113606723
instructions: 113665560
heap_increase: 5
stable_memory_increase: 0
scopes: {}
list_proposals:
total:
instructions: 126040
instructions: 126041
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_ready_to_spawn_neuron_ids_heap:
total:
instructions: 132847
instructions: 132789
heap_increase: 0
stable_memory_increase: 0
scopes: {}
list_ready_to_spawn_neuron_ids_stable:
total:
instructions: 43270000
instructions: 43304554
heap_increase: 0
stable_memory_increase: 0
scopes: {}
neuron_data_validation_heap:
total:
instructions: 406853184
instructions: 407435747
heap_increase: 0
stable_memory_increase: 0
scopes: {}
neuron_data_validation_stable:
total:
instructions: 362648372
instructions: 363402784
heap_increase: 0
stable_memory_increase: 0
scopes: {}
neuron_metrics_calculation_heap:
total:
instructions: 1498869
instructions: 1485668
heap_increase: 0
stable_memory_increase: 0
scopes: {}
neuron_metrics_calculation_stable:
total:
instructions: 3027495
instructions: 3085347
heap_increase: 0
stable_memory_increase: 0
scopes: {}
range_neurons_performance:
total:
instructions: 56447340
instructions: 56514456
heap_increase: 0
stable_memory_increase: 0
scopes: {}
single_vote_all_stable:
total:
instructions: 2805871
instructions: 2806911
heap_increase: 0
stable_memory_increase: 128
scopes: {}
update_recent_ballots_stable_memory:
total:
instructions: 274000
instructions: 275035
heap_increase: 0
stable_memory_increase: 0
scopes: {}
Expand Down
2 changes: 1 addition & 1 deletion rs/nns/integration_tests/src/neuron_voting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ fn test_voting_can_span_multiple_rounds() {

// No recent ballots, bc ran out of instructions, should wait til next round.
for neuron in listed_neurons.full_neurons {
assert_eq!(neuron.recent_ballots, Some(vec![]), "Neuron: {:?}", neuron);
assert_eq!(neuron.recent_ballots, vec![], "Neuron: {:?}", neuron);
}

// The timer should run, which should record all the ballots.
Expand Down

0 comments on commit b1715d5

Please sign in to comment.