Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Jan 6, 2025
1 parent 2ba5224 commit f645a89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3

- uses: luanpotter/[email protected]
with:
paths: "examples/"
ignore-tag: "no-benchmark"
is-flutter: true
env:
- uses: luanpotter/[email protected]
with:
paths: "examples/"
ignore-tag: "no-benchmark"
is-flutter: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions examples/benchmark/update_components_benchmark.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class UpdateComponentsBenchmark extends AsyncBenchmarkBase {
@override
Future<void> setup() async {
_game = FlameGame();
for (var i = 0; i < _amountComponents; i++) {
_game.add(_BenchmarkComponent(i));
}
await _game.addAll(
List.generate(_amountComponents, _BenchmarkComponent.new),
);

await _game.ready();

Expand Down

0 comments on commit f645a89

Please sign in to comment.