dart-sdk/benchmarks/DartCLIStartup/dart/DartCLIStartup.dart
Ben Konyi 7767e6acc1 [ Benchmarks ] Add benchmarks for SDK snapshot sizes and Dart CLI
startup time

Change-Id: If0c792036ac377aa3d777f95816e9d1d548326b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201167
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-05-25 17:52:41 +00:00

22 lines
556 B
Dart

// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:benchmark_harness/benchmark_harness.dart';
class DartCLIStartup extends BenchmarkBase {
const DartCLIStartup() : super('DartCLIStartup');
// The benchmark code.
@override
void run() {
Process.runSync(Platform.executable, ['help']);
}
}
void main() {
const DartCLIStartup().report();
}