benchmarks

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package benchmarks is the home of Phase A performance measurements. It is kept out of the root solana package so that benchmark-only fixtures, target structs, and helper generators do not bleed into the shipping API.

Every benchmark in this package reads from checked-in fixtures under testdata/ so that results are reproducible across machines and Go versions. The current fixtures are hand-crafted shape-accurate synthetic samples; replacing them with real mainnet captures is a Phase A follow-up.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountInfoJSON

func GetAccountInfoJSON() []byte

GetAccountInfoJSON returns the bytes of a synthetic getAccountInfo result payload. The fixture is a rent-exempt SPL Token account.

func GetBlockJSON

func GetBlockJSON() []byte

GetBlockJSON returns the bytes of a synthetic getBlock result payload. The fixture holds a handful of transactions and is sized to be representative of block decoding, not of real mainnet blocks; upgrading to real captures is a Phase A follow-up.

func GetTransactionJSON

func GetTransactionJSON() []byte

GetTransactionJSON returns the bytes of a synthetic getTransaction result payload. The fixture is a single legacy system-transfer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL