benchops

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// gno store
	StoreGetObject       byte = 0x01 // get value and unmarshl to object from store
	StoreSetObject       byte = 0x02 // marshal object and set value in store
	StoreDeleteObject    byte = 0x03 // delete value from store
	StoreGetPackage      byte = 0x04 // get package from store
	StoreSetPackage      byte = 0x05 // get package from store
	StoreGetType         byte = 0x06 // get type from store
	StoreSetType         byte = 0x07 // set type in store
	StoreGetBlockNode    byte = 0x08 // get block node from store
	StoreSetBlockNode    byte = 0x09 // set block node in store
	StoreAddMemPackage   byte = 0x0A // add mempackage to store
	StoreGetMemPackage   byte = 0x0B // get mempackage from store
	StoreGetPackageRealm byte = 0x0C // add mempackage to store
	StoreSetPackageRealm byte = 0x0D // get mempackage from store

	AminoMarshal    byte = 0x0E // marshal mem package and realm to binary
	AminoMarshalAny byte = 0x0F // marshal gno object to binary
	AminoUnmarshal  byte = 0x10 // unmarshl binary to gno object, package and realm

	// underlying store
	StoreGet byte = 0x11 // Get binary value by key
	StoreSet byte = 0x12 // Set binary value by key

	FinalizeTx byte = 0x13 // finalize transaction

)

store code

View Source
const OpsEnabled = false
View Source
const RecordSize int = 10

the byte size of a exported record

View Source
const StorageEnabled = false

Variables

This section is empty.

Functions

func Finish

func Finish()

func FinishRun

func FinishRun()

func FinishStore

func FinishStore()

func Init

func Init(filepath string)

func InitMeasure

func InitMeasure()

func PauseOpCode

func PauseOpCode()

Pause current opcode measurement

func ResetRun

func ResetRun()

It reset each machine Runs

func ResumeOpCode

func ResumeOpCode()

Resume resumes current measurement

func StartOpCode

func StartOpCode(code byte)

func StartStore

func StartStore(code byte)

func StopOpCode

func StopOpCode()

Stop the current measurement

func StopStore

func StopStore(size int)

assume there is no recursive call for store.

func StoreCodeString

func StoreCodeString(storeCode byte) string

Types

type Code

type Code [2]byte

func StoreCode

func StoreCode(storeCode byte) Code

func VMOpCode

func VMOpCode(opCode byte) Code

Jump to

Keyboard shortcuts

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