1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-01 07:14:29 +00:00

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 <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
Josh Soref 2022-12-20 12:36:37 +00:00 committed by Commit Queue
parent 6bce0d6b7a
commit 4d7839dfda
7 changed files with 9 additions and 9 deletions

View File

@ -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()

View File

@ -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() {}
}

View File

@ -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() {}
}

View File

@ -204,7 +204,7 @@ double doLoadDouble(Pointer<Double> pointer, int length) {
return x;
}
// Aggregates pointers through aggregrating their addresses.
// Aggregates pointers through aggregating their addresses.
int doLoadPointer(Pointer<Pointer<Int8>> pointer, int length) {
Pointer<Int8> x;
int address_xor = 0;

View File

@ -206,7 +206,7 @@ double doLoadDouble(Pointer<Double> pointer, int length) {
return x;
}
// Aggregates pointers through aggregrating their addresses.
// Aggregates pointers through aggregating their addresses.
int doLoadPointer(Pointer<Pointer<Int8>> pointer, int length) {
Pointer<Int8> x;
int address_xor = 0;

View File

@ -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<Iterable<Comparable>>`, 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

View File

@ -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++;