-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 27eab85 Author: Garrett <gsharp.impact@gmail.com> Date: Thu Apr 4 01:24:37 2024 -0500 bump versions & update changelogs commit 88e3334 Author: Garrett <gsharp.impact@gmail.com> Date: Thu Apr 4 01:17:35 2024 -0500 update readmes commit f2d93a0 Author: Garrett <gsharp.impact@gmail.com> Date: Thu Apr 4 01:11:23 2024 -0500 fix monorepo readme pub badges commit 32f26a6 Author: Garrett <gsharp.impact@gmail.com> Date: Sun Mar 31 19:59:04 2024 -0500 Fix name ref commit f150781 Author: Garrett <gsharp.impact@gmail.com> Date: Sun Mar 31 02:57:30 2024 -0500 run once when benchmarking commit 5c23d5e Author: Garrett <gsharp.impact@gmail.com> Date: Sun Mar 31 02:40:12 2024 -0500 feat: allow disabling deep copying items in snapshot commit c2a2e83 Author: Garrett <gsharp.impact@gmail.com> Date: Sun Mar 31 01:47:53 2024 -0500 update example to call dispose commit 1b2c416 Author: Garrett <gsharp.impact@gmail.com> Date: Sun Mar 31 01:34:47 2024 -0500 defaults - assert parallel > 0 - change default retries to 0 commit 81d27e3 Author: Garrett <gsharp.impact@gmail.com> Date: Sat Mar 30 23:33:36 2024 -0500 changelog
- Loading branch information
Showing
10 changed files
with
104 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.0.4 | ||
|
||
* Updated example project | ||
|
||
## 0.0.3 | ||
|
||
* Added example to README.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import 'package:benchmark_harness/benchmark_harness.dart'; | ||
import 'package:queue_it/queue_it.dart'; | ||
|
||
class QueueItBenchmark extends BenchmarkBase { | ||
QueueIt<int>? queue; | ||
|
||
QueueItBenchmark() : super('QueueIt'); | ||
|
||
static void main() { | ||
QueueItBenchmark().report(); | ||
} | ||
|
||
// The benchmark code. | ||
@override | ||
void run() { | ||
for (int i = 0; i < 100; i++) { | ||
queue?.add(i); | ||
} | ||
} | ||
|
||
@override | ||
void exercise() => run(); | ||
|
||
// Not measured setup code executed prior to the benchmark runs. | ||
@override | ||
void setup() { | ||
queue = QueueIt( | ||
deepCopyItemsInSnapshot: false, | ||
itemHandler: (item) async { | ||
// Do nothing. | ||
}, | ||
)..onUpdate.listen((event) { | ||
// Adds a subscriber so that snapshot events are sent. | ||
}); | ||
} | ||
|
||
// Not measured teardown code executed after the benchmark runs. | ||
@override | ||
void teardown() { | ||
queue?.dispose(); | ||
} | ||
} | ||
|
||
void main() { | ||
QueueItBenchmark.main(); | ||
} |