-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(nns): Add benchmarks for periodic tasks (#2729)
# Why There was a recent regression on how we list neurons ready to unstake maturity or spawn. Adding benchmarks for those will help prevent them in the future (although, currently they are not enabled in CI yet). # What Adding benchmarks for `list_ready_to_spawn_neuron_ids` and `list_neurons_ready_to_unstake_maturity`. Additional dimensions are: (1) whether the "active neuron in stable memory" is enabled (2) whether there are actually meaningful return value. # Testing When running against changes in #2726 , we get the following results: --------------------------------------------------- Benchmark: list_ready_to_spawn_neuron_ids_heap total: instructions: 455.22 K (improved by 86.76%) heap_increase: 0 pages (no change) stable_memory_increase: 0 pages (no change) --------------------------------------------------- Benchmark: list_ready_to_spawn_neuron_ids_stable total: instructions: 710.56 M (0.00%) (change within noise threshold) heap_increase: 0 pages (no change) stable_memory_increase: 0 pages (no change) --------------------------------------------------- Benchmark: list_neurons_ready_to_unstake_maturity_heap total: instructions: 463.15 K (improved by 86.54%) heap_increase: 0 pages (no change) stable_memory_increase: 0 pages (no change) --------------------------------------------------- Benchmark: list_neurons_ready_to_unstake_maturity_stable total: instructions: 710.57 M (0.00%) (change within noise threshold) heap_increase: 0 pages (no change) stable_memory_increase: 0 pages (no change) ---------------------------------------------------
- Loading branch information
1 parent
2a4b58c
commit fbbb395
Showing
2 changed files
with
134 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters