From 4d7839dfda5580930062c31be1a974ab57bae851 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 20 Dec 2022 12:36:37 +0000 Subject: [PATCH] Spelling benchmarks 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 Commit-Queue: Jonas Termansen --- benchmarks/BigIntParsePrint/dart2/BigIntParsePrint.dart | 4 ++-- benchmarks/Example/dart/Example.dart | 2 +- benchmarks/Example/dart2/Example.dart | 2 +- benchmarks/FfiMemory/dart/FfiMemory.dart | 2 +- benchmarks/FfiMemory/dart2/FfiMemory.dart | 2 +- benchmarks/Iterators/dart/Iterators.dart | 4 ++-- benchmarks/LongStringCompare/dart/LongStringCompare.dart | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/benchmarks/BigIntParsePrint/dart2/BigIntParsePrint.dart b/benchmarks/BigIntParsePrint/dart2/BigIntParsePrint.dart index 2ff130d22d5..62c84a60622 100644 --- a/benchmarks/BigIntParsePrint/dart2/BigIntParsePrint.dart +++ b/benchmarks/BigIntParsePrint/dart2/BigIntParsePrint.dart @@ -14,7 +14,7 @@ import 'package:fixnum/fixnum.dart'; import 'native_version_dummy.dart' if (dart.library.js) 'native_version_javascript.dart'; -// Benckmark BigInt and Int64 formatting and parsing. +// Benchmark BigInt and Int64 formatting and parsing. // A global sink that is used in the [check] method ensures that the results are // not optimized. @@ -312,7 +312,7 @@ void main() { selectFormatNativeBigIntBenchmark('JsBigInt.toString.4096.bits', 4096), ]; - // Warm up all benchmarks to ensure consistent behavious of shared code. + // Warm up all benchmarks to ensure consistent behaviors of shared code. benchmarks.forEach((bm) => bm() ..setup() ..run() diff --git a/benchmarks/Example/dart/Example.dart b/benchmarks/Example/dart/Example.dart index bf0f06fe80d..00f349cd781 100644 --- a/benchmarks/Example/dart/Example.dart +++ b/benchmarks/Example/dart/Example.dart @@ -15,7 +15,7 @@ class Example extends BenchmarkBase { @override void setup() {} - // Not measures teardown code executed after the benchark runs. + // Not measures teardown code executed after the benchmark runs. @override void teardown() {} } diff --git a/benchmarks/Example/dart2/Example.dart b/benchmarks/Example/dart2/Example.dart index da484b1b97e..30843a26676 100644 --- a/benchmarks/Example/dart2/Example.dart +++ b/benchmarks/Example/dart2/Example.dart @@ -17,7 +17,7 @@ class Example extends BenchmarkBase { @override void setup() {} - // Not measured teardown code executed after the benchark runs. + // Not measured teardown code executed after the benchmark runs. @override void teardown() {} } diff --git a/benchmarks/FfiMemory/dart/FfiMemory.dart b/benchmarks/FfiMemory/dart/FfiMemory.dart index 6178f24fd34..5ca2954cd03 100644 --- a/benchmarks/FfiMemory/dart/FfiMemory.dart +++ b/benchmarks/FfiMemory/dart/FfiMemory.dart @@ -204,7 +204,7 @@ double doLoadDouble(Pointer pointer, int length) { return x; } -// Aggregates pointers through aggregrating their addresses. +// Aggregates pointers through aggregating their addresses. int doLoadPointer(Pointer> pointer, int length) { Pointer x; int address_xor = 0; diff --git a/benchmarks/FfiMemory/dart2/FfiMemory.dart b/benchmarks/FfiMemory/dart2/FfiMemory.dart index b3a6cf9d099..d57712c52e5 100644 --- a/benchmarks/FfiMemory/dart2/FfiMemory.dart +++ b/benchmarks/FfiMemory/dart2/FfiMemory.dart @@ -206,7 +206,7 @@ double doLoadDouble(Pointer pointer, int length) { return x; } -// Aggregates pointers through aggregrating their addresses. +// Aggregates pointers through aggregating their addresses. int doLoadPointer(Pointer> pointer, int length) { Pointer x; int address_xor = 0; diff --git a/benchmarks/Iterators/dart/Iterators.dart b/benchmarks/Iterators/dart/Iterators.dart index d4ff6c41089..3c3d961e6a9 100644 --- a/benchmarks/Iterators/dart/Iterators.dart +++ b/benchmarks/Iterators/dart/Iterators.dart @@ -38,7 +38,7 @@ /// Generic Iterables have benchmarks for different element types. There are /// benchmarks for `int` type arguments, which have a fast type test, and for /// `Thing>`, which is harder to test quickly. These tests -/// are distingished by `int` and `Hard` in the name. +/// are distinguished by `int` and `Hard` in the name. /// /// ## Monomorphic benchmarks /// @@ -63,7 +63,7 @@ /// /// ### Iterators.poly.Runes.1 /// -/// An interation over the String.runes iterable of a single character String +/// An iteration over the String.runes iterable of a single character String /// using the shared polymorphic loop. /// /// ### Iterators.poly.HashMap.Hard.keys.100 diff --git a/benchmarks/LongStringCompare/dart/LongStringCompare.dart b/benchmarks/LongStringCompare/dart/LongStringCompare.dart index f30dbc2d2fa..cd54576471f 100644 --- a/benchmarks/LongStringCompare/dart/LongStringCompare.dart +++ b/benchmarks/LongStringCompare/dart/LongStringCompare.dart @@ -33,7 +33,7 @@ class LongStringCompare extends BenchmarkBase { @override void run() { for (int i = 0; i < reps; i++) { - // Make string comparison code hoisiting harder for the compiler to do. + // Make string comparison code hoisting harder for the compiler to do. bool comparison = s[i % 2] == s[(i + 1) % 2]; if (comparison) { equalCount++;