import "v.io/x/ref/services/ben/benarchd/internal"
assets.go http.go server.go sql_store.go store.go
func Authorizer() security.Authorizer
Authorizer implements an authorization policy that authorizes callers with any recognizeable blessing name.
func NewArchiver(store Store, url string) archive.BenchmarkArchiverServerStub
NewArchiver returns an archive.BenchmarkArchiver server that uses store to persist data and provides a UI to browse archived benchmark results at url.
NewHTTPHandler returns a handler that provides web interface for browsing benchmark results in store.
type Assets struct {
// contains filtered or unexported fields
}
NewAssets returns an object that provides compiled-in assets if dir is empty or reads them from dir otherwise.
A non-empty dir is typically provided when iterating on the contents of the assets before release.
type Benchmark struct { ID string // A unique identifier of this particular Benchmark Name string // Name (e.g. v.io/v23/security.BenchmarkSign) of the Benchmark. Scenario ben.Scenario // The scenario under which the benchmark was run. Uploader string // Identity of the user that uploaded the results. // Results from most recently uploaded runs for this benchmark. NanoSecsPerOp float64 MegaBytesPerSec float64 LastUpdate time.Time }
Benchmark identifies a particular (Benchmark, Scenario, Uploader) tuple. Many ben.Run objects are associated with a single Benchmark.
type BenchmarkIterator interface { Iterator Value() Benchmark Runs() RunIterator }
ParseQuery converts a query string into a structured Query object.
The query language supports setting each field in the Query object at most once and the query will be an AND of all terms. A more expressive query language is left as an exercise to a future enthusiast.
type RunIterator interface { Iterator Value() (run ben.Run, sourceCodeID string, uploadTime time.Time) }
type Store interface { Save(ctx *context.T, scenario ben.Scenario, code ben.SourceCode, uploader string, uploadTime time.Time, runs []ben.Run) error Benchmarks(query *Query) BenchmarkIterator Runs(benchmarkID string) (Benchmark, RunIterator) DescribeSource(id string) (ben.SourceCode, error) }
NewSQLStore returns a Store implementation that uses the provided database for persistent storage.
Path | Synopsis |
---|---|
assets |
Package internal imports 20 packages (graph) and is imported by 5 packages. Updated 2021-01-28. Refresh now. Tools for package owners.