mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:07:06 +00:00
7767e6acc1
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>
24 lines
570 B
Dart
24 lines
570 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.
|
|
|
|
// @dart=2.9
|
|
|
|
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();
|
|
}
|