solana-with-rpc-optimizations/core/benches
Tao Zhu 9d6f1ebef4
investigate system performance test degradation (#17919)
* Add stats and counter around cost model ops, mainly:
- calculate transaction cost
- check transaction can fit in a block
- update block cost tracker after transactions are added to block
- replay_stage to update/insert execution cost to table

* Change mutex on cost_tracker to RwLock

* removed cloning cost_tracker for local use, as the metrics show clone is very expensive.

* acquire and hold locks for block of TXs, instead of acquire and release per transaction;

* remove redundant would_fit check from cost_tracker update execution path

* refactor cost checking with less frequent lock acquiring

* avoid many Transaction_cost heap allocation when calculate cost, which
is in the hot path - executed per transaction.

* create hashmap with new_capacity to reduce runtime heap realloc.

* code review changes: categorize stats, replace explicit drop calls, concisely initiate to default

* address potential deadlock by acquiring locks one at time
2021-06-28 21:34:04 -05:00
..
banking_stage.rs investigate system performance test degradation (#17919) 2021-06-28 21:34:04 -05:00
blockstore.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
cluster_info.rs Move gossip modules into solana-gossip crate (#17352) 2021-05-26 09:15:46 -06:00
consensus.rs chore: cargo +nightly clippy --fix -Z unstable-options 2021-06-18 10:42:46 -07:00
gen_keys.rs
retransmit_stage.rs Shredder no longer holds a keypair 2021-06-21 21:29:52 -07:00
shredder.rs Shredder no longer holds a keypair 2021-06-21 21:29:52 -07:00
sigverify_stage.rs