in benchmark/bench.dart [17:49]
void main(List<String> args) async {
final json = args.contains('--json');
final harness = BenchmarkHarness(asJson: json);
final compiler = Compiler(Sdk.create(stableChannel));
Logger.root.level = Level.WARNING;
Logger.root.onRecord.listen((LogRecord record) {
print(record);
if (record.stackTrace != null) print(record.stackTrace);
});
final benchmarks = <Benchmark>[
AnalyzerBenchmark('hello', sampleCode),
AnalyzerBenchmark('hellohtml', sampleCodeWeb),
AnalyzerBenchmark('sunflower', _sunflower),
AnalyzerBenchmark('spinning_square', _spinningSquare),
AnalysisServerBenchmark('hello', sampleCode),
AnalysisServerBenchmark('hellohtml', sampleCodeWeb),
AnalysisServerBenchmark('sunflower', _sunflower),
AnalysisServerBenchmark('spinning_square', _spinningSquare),
Dart2jsBenchmark('hello', sampleCode, compiler),
Dart2jsBenchmark('hellohtml', sampleCodeWeb, compiler),
Dart2jsBenchmark('sunflower', _sunflower, compiler),
Dart2jsBenchmark('spinning_square', _spinningSquare, compiler),
DevCompilerBenchmark('hello', sampleCode, compiler),
DevCompilerBenchmark('hellohtml', sampleCodeWeb, compiler),
DevCompilerBenchmark('sunflower', _sunflower, compiler),
DevCompilerBenchmark('spinning_square', _spinningSquare, compiler),
];
await harness.benchmark(benchmarks);
await compiler.dispose();
}