spl-instruction-padding

Crates.iospl-instruction-padding
lib.rsspl-instruction-padding
version0.3.0
sourcesrc
created_at2022-09-21 12:17:20.734519
updated_at2024-11-01 11:56:53.147354
descriptionSolana Program Library Instruction Padding Program
homepagehttps://solana.com/
repositoryhttps://github.com/solana-labs/solana-program-library
max_upload_size
id670928
size14,749
(anza-team)

documentation

README

Instruction Pad Program

A program for padding instructions with additional data or accounts, to be used for testing larger transactions, either more instruction data, or more accounts.

The main use-case is with solana-bench-tps, where we can see the impact of larger transactions through TPS numbers. With that data, we can develop a fair fee model for large transactions.

It operates with two instructions: no-op and wrap.

  • No-op: simply an instruction with as much data and as many accounts as desired, of which none will be used for processing.
  • Wrap: before the padding data and accounts, accepts a real instruction and required accounts, and performs a CPI into the program specified by the instruction

Both of these modes add the general overhead of calling a BPF program, and the wrap mode adds the CPI overhead.

Because of the overhead, it's best to use the instruction padding program with all large transaction tests, and comparing TPS numbers between:

  • using the program with no padding
  • using the program with data and account padding

Audit

The repository README contains information about program audits.

Commit count: 5947

cargo fmt