We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1ef95 commit ebb1180Copy full SHA for ebb1180
test/performance/encode_decode.dart
@@ -82,12 +82,10 @@ void main() {
82
'jsonapi': {'version': '1.0', 'meta': meta}
83
};
84
85
- Object j;
86
-
87
final count = 100000;
88
final start = DateTime.now().millisecondsSinceEpoch;
89
for (var i = 0; i < count; i++) {
90
- j = Document.fromJson(json, ResourceCollectionData.fromJson).toJson();
+ Document.fromJson(json, ResourceCollectionData.fromJson).toJson();
91
}
92
final stop = DateTime.now().millisecondsSinceEpoch;
93
print('$count iterations took ${stop - start} ms');
0 commit comments