mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:10:27 +00:00
4d7839dfda
Closes https://github.com/dart-lang/sdk/pull/50787 GitOrigin-RevId: 7cf1129d9bee2a4c1a857767dadae11d81e927f1 Change-Id: Ie7028f94966755d565843b8f6e2590f2243ff937 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276685 Reviewed-by: Jonas Termansen <sortie@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
28 lines
667 B
Dart
28 lines
667 B
Dart
// Copyright (c) 2019, 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 'package:benchmark_harness/benchmark_harness.dart';
|
|
|
|
class Example extends BenchmarkBase {
|
|
const Example() : super('Example');
|
|
|
|
// The benchmark code.
|
|
@override
|
|
void run() {}
|
|
|
|
// Not measured setup code executed prior to the benchmark runs.
|
|
@override
|
|
void setup() {}
|
|
|
|
// Not measured teardown code executed after the benchmark runs.
|
|
@override
|
|
void teardown() {}
|
|
}
|
|
|
|
void main() {
|
|
const Example().report();
|
|
}
|