Skip to content

Commit 9648b62

Browse files
committed
Update performance timing
1 parent 1ef0615 commit 9648b62

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/algorithm_performance_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void main() {
5757
}
5858

5959
for (final result in results.values) {
60-
expect(result < 5000, true);
60+
expect(result < 30000, true);
6161
}
6262
});
6363
}

test/buchheim_walker_algorithm_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void main() {
9797
);
9898
});
9999

100-
test('Buchheim Performance for 1000 nodes to be less than 20ms', () {
100+
test('Buchheim Performance for 1000 nodes to be less than 40ms', () {
101101
Graph _createGraph(int n) {
102102
final graph = Graph();
103103
final nodes = List.generate(n, (i) => Node.Id(i + 1));
@@ -136,7 +136,7 @@ void main() {
136136

137137
print('Timetaken $timeTaken for ${graph.nodeCount()} nodes');
138138

139-
expect(timeTaken < 20, true);
139+
expect(timeTaken < 40, true);
140140
});
141141
});
142142
}

test/sugiyama_algorithm_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ void main() {
903903
}
904904
});
905905

906-
test('Sugiyama Performance for 100 nodes to be less than 2.5s', () {
906+
test('Sugiyama Performance for 100 nodes to be less than 5.2s', () {
907907
final graph = Graph();
908908

909909
var rows = 100;
@@ -932,7 +932,7 @@ void main() {
932932

933933
print('Timetaken $timeTaken ${graph.nodeCount()}');
934934

935-
expect(timeTaken < 2500, true);
935+
expect(timeTaken < 5200, true);
936936
});
937937
});
938938
}

0 commit comments

Comments
 (0)