UNPKG

tachometer

Version:
30 lines (29 loc) 1.11 kB
/** * @license * Copyright (c) 2019 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ import { ResultStatsWithDifferences } from './stats'; /** * Format statistical results as a CSV file string. */ export declare function formatCsvStats(results: ResultStatsWithDifferences[]): string; /** * Format raw sample results as a CSV file string. * * Columns correspond to benchmarks. Rows correspond to sample iterations. The * first row is headers containing the benchmark names. * * For example: * * foo, bar, baz * 1.2, 5.5, 9.4 * 1.8, 5.6, 9.1 * 1.3, 5.2, 9.8 */ export declare function formatCsvRaw(results: ResultStatsWithDifferences[]): string;