blob: 4f625a27d35a535265e733c827e42e5feeb007d7 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Package schema defines the schema for Fuchsia's performance test output.
package schema
// Variant is a collection of benchmark runs with a specified configuration.
type Variant struct {
FinishTime int64 `json:"finish_time"`
FBenchmarksData []BenchmarkData `json:"fbenchmarks_data"`
VariantDesc string `json:"variant_desc"`
BootArgs []string `json:"boot_args"`
}
// BenchmarkData is a single benchmark.
type BenchmarkData struct {
Label string `json:"label"`
Unit string `json:"unit"`
Samples []Sample `json:"samples"`
}
// Sample is a samping of multiple values from a single benchmark.
type Sample struct {
Label string `json:"label"`
Values []float64 `json:"values"`
}