dart-sdk/benchmarks/TypedDataCopy/dart/TypedDataCopy.dart
Jacob Richman 933537b66b Trivial cleanup to make VSCode workspace for the SDK
free of diagnostics as long as you filter with "!TODO"

R=athom@google.com, jensj@google.com, natebiggs@google.com

Change-Id: I73cf3c5ef6dab81808330c4eb5f44cb62e753c81
Tested: manually verified that VSCode is warning free. No changes in functionality.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333903
Auto-Submit: Jacob Richman <jacobr@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Jacob Richman <jacobr@google.com>
2023-11-07 17:49:53 +00:00

28 lines
629 B
Dart

// Copyright (c) 2023, 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 'TypedDataCopyLib.dart';
void main() {
final benchmarks = [
Int8ViewToInt8View.new,
Int8ToInt8.new,
Int8ToUint8Clamped.new,
Int8ViewToInt8.new,
ByteSwap.new,
];
// Run all the code to ensure consistent polymorphism in shared code.
for (var bm in benchmarks) {
bm()
..setup()
..run()
..run();
}
for (var bm in benchmarks) {
bm().report();
}
}