2019-07-10 14:51:14 +00:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
import 'package:benchmark_harness/benchmark_harness.dart';
|
|
|
|
|
|
|
|
class Example extends BenchmarkBase {
|
2020-06-23 08:41:19 +00:00
|
|
|
const Example() : super('Example');
|
2019-07-10 14:51:14 +00:00
|
|
|
|
|
|
|
// The benchmark code.
|
2020-06-23 08:41:19 +00:00
|
|
|
@override
|
2019-07-10 14:51:14 +00:00
|
|
|
void run() {}
|
|
|
|
|
|
|
|
// Not measured setup code executed prior to the benchmark runs.
|
2020-06-23 08:41:19 +00:00
|
|
|
@override
|
2019-07-10 14:51:14 +00:00
|
|
|
void setup() {}
|
|
|
|
|
2022-12-20 12:36:37 +00:00
|
|
|
// Not measures teardown code executed after the benchmark runs.
|
2020-06-23 08:41:19 +00:00
|
|
|
@override
|
2019-07-10 14:51:14 +00:00
|
|
|
void teardown() {}
|
|
|
|
}
|
|
|
|
|
2020-06-23 08:41:19 +00:00
|
|
|
void main() {
|
2019-07-10 14:51:14 +00:00
|
|
|
const Example().report();
|
|
|
|
}
|