godmodegalactus / mango_bencher

This project is to bench mark solana by flooding it with Mango market maker requests.
3 stars 4 forks source link

Send transactions in batches of configurable size #3

Closed KirillLykov closed 2 years ago

KirillLykov commented 2 years ago

Refactored version of https://github.com/godmodegalactus/mango_bencher/pull/2/files

Sending transactions in batches significantly increases tps:

Screenshot 2022-11-02 at 15 02 31

Please review commit by commit

Changes made:

  1. Add cli for batch size, if not specified don't use batched requests
  2. Refactor send_mm_transactions by moving common logic for transaction creation to a separate methods/functions
  3. Support batched and not batched requests (as requested by the tool author) in two different methods/functions