Skip to content

Commit

Permalink
Version 3.2.0-134.0.dev
Browse files Browse the repository at this point in the history
Merge 144ea5b into dev
  • Loading branch information
Dart CI committed Sep 4, 2023
2 parents 1b948c7 + 144ea5b commit 43d4b13
Show file tree
Hide file tree
Showing 20 changed files with 2,528 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ constraint][language version] lower bound to 3.2 or greater (`sdk: '^3.2.0'`).

[#53106]: https://github.com/dart-lang/sdk/issues/53106

#### Pub

- New option `dart pub upgrade --tighten` which will update dependencies' lower
bounds in pubspec.yaml to match the current version.
- The commands `dart pub get`/`add`/`upgrade` will now show if a dependency
changed between direct, dev and transitive dependency.
- The command `dart pub upgrade` no longer shows unchanged dependencies.

## 3.1.0

### Libraries
Expand Down
4 changes: 2 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ vars = {

# co19 is a cipd package. Use update.sh in tests/co19[_2] to update these
# hashes.
"co19_rev": "910330408dd6af6b8f58c5d26464dbe0ce76e476",
"co19_rev": "ea1107d66f543f79ce865522ddd63718c8eb109e",
# This line prevents conflicts when both packages are rolled simultaneously.
"co19_2_rev": "0454b178fdf6697e898b5e5c7ee553a9bc266faa",

Expand Down Expand Up @@ -167,7 +167,7 @@ vars = {
"path_rev": "96d9183ad4f9e48109fa8d4b8269cf75f13922dd",
"pool_rev": "a5bee3540a2b5b3a3c34038667e7cd7bb514dc62",
"protobuf_rev": "5e8f36b48f015532cd1165b47686b659fc8870da",
"pub_rev": "42819a1e10f803eb7f6296692c5a976e1c647360", # disable rev_sdk_deps.dart
"pub_rev": "be6868ba132c782d9835b1638a634ecb73428579", # disable rev_sdk_deps.dart
"pub_semver_rev": "028b43506a3f7ec7f7b4673a78ba3da3d5fb138d",
"shelf_rev": "2926f76dc0f713b46ba5d9dbc391e29c6d1521a9",
"source_map_stack_trace_rev": "196d7bfa58ef307687907c323ab8e5fb1f382afa",
Expand Down
25 changes: 25 additions & 0 deletions benchmarks/ForEachLoop/dart/ForEachLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// 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 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForEach extends IterationBenchmark {
ForEach() : super('ForEachLoop');

@override
void run() {
list.forEach(fn);
}
}

void main() {
ForEach().report();
}
27 changes: 27 additions & 0 deletions benchmarks/ForEachLoop/dart2/ForEachLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.

// @dart=2.9

import 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForEach extends IterationBenchmark {
ForEach() : super('ForEachLoop');

@override
void run() {
list.forEach(fn);
}
}

void main() {
ForEach().report();
}
33 changes: 33 additions & 0 deletions benchmarks/ForInGeneratedLoop/dart/ForInGeneratedLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// 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 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

Iterable<int> generateElements(List<int> list) sync* {
for (var i = 0; i < list.length; i++) {
yield list[i];
}
}

class ForInGenerated extends IterationBenchmark {
ForInGenerated() : super('ForInGeneratedLoop');

@override
void run() {
for (var item in generateElements(list)) {
fn(item);
}
}
}

void main() {
ForInGenerated().report();
}
35 changes: 35 additions & 0 deletions benchmarks/ForInGeneratedLoop/dart2/ForInGeneratedLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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.

// @dart=2.9

import 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

Iterable<int> generateElements(List<int> list) sync* {
for (var i = 0; i < list.length; i++) {
yield list[i];
}
}

class ForInGenerated extends IterationBenchmark {
ForInGenerated() : super('ForInGeneratedLoop');

@override
void run() {
for (var item in generateElements(list)) {
fn(item);
}
}
}

void main() {
ForInGenerated().report();
}
27 changes: 27 additions & 0 deletions benchmarks/ForInLoop/dart/ForInLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForIn extends IterationBenchmark {
ForIn() : super('ForInLoop');

@override
void run() {
for (var item in list) {
fn(item);
}
}
}

void main() {
ForIn().report();
}
29 changes: 29 additions & 0 deletions benchmarks/ForInLoop/dart2/ForInLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.

// @dart=2.9

import 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForIn extends IterationBenchmark {
ForIn() : super('ForInLoop');

@override
void run() {
for (var item in list) {
fn(item);
}
}
}

void main() {
ForIn().report();
}
27 changes: 27 additions & 0 deletions benchmarks/ForLoop/dart/ForLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForLoop extends IterationBenchmark {
ForLoop() : super('ForLoop');

@override
void run() {
for (var i = 0; i < list.length; i++) {
fn(list[i]);
}
}
}

void main() {
ForLoop().report();
}
29 changes: 29 additions & 0 deletions benchmarks/ForLoop/dart2/ForLoop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.

// @dart=2.9

import 'package:benchmark_harness/benchmark_harness.dart';

class IterationBenchmark extends BenchmarkBase {
List<int> list = List.generate(1000, (i) => i);
var r = 0;
void fn(int i) => r = 123 * i;
IterationBenchmark(name) : super(name);
}

class ForLoop extends IterationBenchmark {
ForLoop() : super('ForLoop');

@override
void run() {
for (var i = 0; i < list.length; i++) {
fn(list[i]);
}
}
}

void main() {
ForLoop().report();
}
Loading

0 comments on commit 43d4b13

Please sign in to comment.