3 unstable releases

0.1.1 Feb 9, 2024
0.1.0 Oct 19, 2022
0.0.1 Sep 21, 2022

#536 in Magic Beans

Download history 2997/week @ 2023-12-21 2554/week @ 2023-12-28 5252/week @ 2024-01-04 4700/week @ 2024-01-11 7272/week @ 2024-01-18 5602/week @ 2024-01-25 6569/week @ 2024-02-01 4273/week @ 2024-02-08 4982/week @ 2024-02-15 6721/week @ 2024-02-22 6160/week @ 2024-02-29 5943/week @ 2024-03-07 6492/week @ 2024-03-14 7980/week @ 2024-03-21 7647/week @ 2024-03-28 7616/week @ 2024-04-04

30,916 downloads per month

Apache-2.0

11KB
185 lines

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.

Dependencies

~16–25MB
~414K SLoC