benchmark

package
v0.0.0-...-fdb5356 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const KEY_COUNT = 100
View Source
const PRINT_TX_TIME = false
View Source
const PROCESSOR_TYPE_NATIVE = 1

"github.com/orbs-network/orbs-spec/types/go/protocol"

View Source
const REELECTION_INTERVAL = 10 * time.Minute
View Source
const TEST_KEYS_FILENAME = "benchmark/addresses.json"
View Source
const TIMESTAMP_FORMAT = "2006-01-02T15:04:05.000Z"

Variables

View Source
var OwnerOfAllSupply = Ed25519KeyPairForTests(5) // needs to be a constant across all e2e tests since we deploy the contract only once
View Source
var StabilityNodeAddresses = []string{

	"a0948de40d53cacbbd5dec35ff5154c8596c201a",
	"68bed913a6dea42689748c63325df067094503d4",
	"ca57636f43381f550878772262d0ed53cfbe689e",
	"21595e0deb1075c40e1b7df7906ed43d6d899474",
	"e93269e5752cec83b758cbceaeddf4d40e1556c3",
	"f67e3eac48048d18156570cbbff2904b5d1589b7",
	"54018092153dcdea764f89d33b086c7114e11985",

	"88Ee0923eCAe36FdD101423F22C9eDeeB93E5b84",
	"e5aF3aa8cAC85A6C7546A93b9B7d630f9EE321f9",
	"006F6e8ca3Da6a205A056Adcb57A937ad4a355a7",
	"2995655cC43C3278b43E16b515C0603A5698BCd2",
	"7F7c18aE67356eEB794fe922378703A019115e40",
	"0B90B340B24a6E29561C81cd659108575d922D0b",
	"D81F9370b76C1e87832caF7587fD85738c04dCEd",
	"67A4dc1A9c59C12558f329b09F796c887e91B382",
	"210a89921515c72fc3af3BEd2eDc5199F142e043",
	"66d8085602D123c22DEd73408fff46654cE19B34",
	"4AC903ED212Cf82CfBB76b26C0A68EDb68ce05cF",
	"378Fb07eA9729d88a39D934E2f018479d562b356",
	"D136dDD793fB2b3283Eb6e3a8c41Bc0A29769aDF",
	"98dEb05B38e1edc104c9237EFe193A13AAc89338",
	"64210feB92052BDd989219133025629DB40f3A3C",
}

Functions

func Ed25519KeyPairForTests

func Ed25519KeyPairForTests(setIndex int) *keys.Ed25519KeyPair

func Eventually

func Eventually(timeout time.Duration, f func() bool) bool

func NewHarness

func NewHarness(config *E2EConfig) *harness

func ReadFileConfig

func ReadFileConfig(configPath string) (*nodeConfiguration, error)

func ReadUrlConfig

func ReadUrlConfig(configUrl string) (*nodeConfiguration, error)

func RunLoad

func RunLoad(h *harness, config *E2EConfig) []error

Types

type E2EConfig

type E2EConfig struct {
	StressTestConfig
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig() *E2EConfig

func GetLoadRunnerConfig

func GetLoadRunnerConfig(vchain int64, tps uint64, cfgPath string, isAsync bool) *E2EConfig

type StressTestConfig

type StressTestConfig struct {
	// contains filtered or unexported fields
}

type ValidatorNode

type ValidatorNode struct {
	Address string `json:"address"`
	IP      string `json:"ip"`
	Active  bool   `json:"active,string"`
}

type VirtualChain

type VirtualChain struct {
	Id         VirtualChainId
	HttpPort   int
	GossipPort int
	Config     map[string]interface{}
}

type VirtualChainId

type VirtualChainId uint32

Jump to

Keyboard shortcuts

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