1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | import { BenchmarkSpec } from './types';
|
12 | import { ResultStatsWithDifferences } from './stats';
|
13 | import { Config } from './config';
|
14 | import { Server } from './server';
|
15 | export declare class Runner {
|
16 | private readonly config;
|
17 | private readonly specs;
|
18 | private readonly servers;
|
19 | private readonly browsers;
|
20 | private readonly bar;
|
21 | private readonly results;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | private readonly maxAttempts;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | private readonly attemptTimeout;
|
32 | |
33 |
|
34 |
|
35 | private readonly pollTime;
|
36 | private completeGithubCheck?;
|
37 | private hitTimeout;
|
38 | constructor(config: Config, servers: Map<BenchmarkSpec, Server>);
|
39 | run(): Promise<Array<ResultStatsWithDifferences> | undefined>;
|
40 | private launchBrowsers;
|
41 | private closeBrowsers;
|
42 | /**
|
43 | * Do one throw-away run per benchmark to warm up our server (especially
|
44 | * when expensive bare module resolution is enabled), and the browser.
|
45 | */
|
46 | private warmup;
|
47 | private recordSamples;
|
48 | private takeMinimumSamples;
|
49 | private takeAdditionalSamples;
|
50 | private takeSamples;
|
51 | makeResults(): ResultStatsWithDifferences[];
|
52 | private outputResults;
|
53 | }
|