cmd

package
v0.0.0-...-8442bd4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunCmd = &cli.Command{
	Name:        "run",
	Description: "provides a set of CIDs to the IPFS DHT and measures the time of requesting them concurrently",
	Action:      ConcurrentLookupBenchmark,
	Flags: []cli.Flag{
		&cli.IntFlag{
			Name:        "lookups",
			DefaultText: "number of lookups we want to execute concurrently",
			Required:    true,
			Destination: &concurrentLookups,
		},
		&cli.IntFlag{
			Name:        "jobs",
			DefaultText: "number of jobs we want to execute in the benchmarks",
			Required:    true,
			Destination: &lookupJobs,
		},
		&cli.StringFlag{
			Name:        "output",
			DefaultText: "path to the folder where the results will be written",
			Required:    false,
			Destination: &outputPath,
		},
	},
}

Functions

func ConcurrentLookupBenchmark

func ConcurrentLookupBenchmark(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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