1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | import { BrowserConfig } from './browser';
|
12 | import { ResultStatsWithDifferences } from './stats';
|
13 | import { BenchmarkResult, Measurement } from './types';
|
14 | export interface JsonOutputFile {
|
15 | benchmarks: Benchmark[];
|
16 | }
|
17 | interface BrowserConfigResult extends BrowserConfig {
|
18 | userAgent?: string;
|
19 | }
|
20 | interface Benchmark {
|
21 | name: string;
|
22 | bytesSent: number;
|
23 | version?: string;
|
24 | measurement: Measurement;
|
25 | browser?: BrowserConfigResult;
|
26 | mean: ConfidenceInterval;
|
27 | differences: Array<Difference | null>;
|
28 | samples: number[];
|
29 | }
|
30 | interface Difference {
|
31 | absolute: ConfidenceInterval;
|
32 | percentChange: ConfidenceInterval;
|
33 | }
|
34 | interface ConfidenceInterval {
|
35 | low: number;
|
36 | high: number;
|
37 | }
|
38 | export declare function jsonOutput(results: ResultStatsWithDifferences[]): JsonOutputFile;
|
39 | export interface LegacyJsonOutputFormat {
|
40 | benchmarks: BenchmarkResult[];
|
41 | datetime: string;
|
42 | system: {
|
43 | cpu: {
|
44 | manufacturer: string;
|
45 | model: string;
|
46 | family: string;
|
47 | speed: string;
|
48 | cores: number;
|
49 | };
|
50 | load: {
|
51 | average: number;
|
52 | current: number;
|
53 | };
|
54 | battery: {
|
55 | hasBattery: boolean;
|
56 | connected: boolean;
|
57 | };
|
58 | memory: {
|
59 | total: number;
|
60 | free: number;
|
61 | used: number;
|
62 | active: number;
|
63 | available: number;
|
64 | };
|
65 | };
|
66 | }
|
67 | export declare function legacyJsonOutput(results: BenchmarkResult[]): Promise<LegacyJsonOutputFormat>;
|
68 | export {};
|