Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: benchmark/lib/benchmarks/repeated_string_json.dart

Issue 1829573002: Fix all strong mode warnings in protoc-plugin (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: regenerate pb.dart files Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library protoc.benchmark.repeated_string_json; 5 library protoc.benchmark.repeated_string_json;
6 6
7 import '../benchmark.dart'; 7 import '../benchmark.dart';
8 import '../generated/benchmark.pb.dart' 8 import '../generated/benchmark.pb.dart'
9 show BenchmarkID, Request, Params, Sample; 9 show BenchmarkID, Request, Params, Sample;
10 import '../generated/string_grid.pb.dart' as pb; 10 import '../generated/string_grid.pb.dart' as pb;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 @override 74 @override
75 measureSample(Sample s) => stringReadsPerMillisecond(s); 75 measureSample(Sample s) => stringReadsPerMillisecond(s);
76 76
77 @override 77 @override
78 get measureSampleUnits => "string reads/ms"; 78 get measureSampleUnits => "string reads/ms";
79 79
80 static const $id = BenchmarkID.READ_STRING_REPEATED_JSON; 80 static const $id = BenchmarkID.READ_STRING_REPEATED_JSON;
81 static final $type = new BenchmarkType($id, $create); 81 static final $type = new BenchmarkType($id, $create);
82 82
83 static $create(Request r) { 83 static RepeatedStringBenchmark $create(Request r) {
84 assert(r.params.hasStringFieldCount()); 84 assert(r.params.hasStringFieldCount());
85 assert(r.params.hasMessageCount()); 85 assert(r.params.hasMessageCount());
86 assert(r.params.hasStringSize()); 86 assert(r.params.hasStringSize());
87 return new RepeatedStringBenchmark( 87 return new RepeatedStringBenchmark(
88 r.params.stringFieldCount, r.params.messageCount, r.params.stringSize); 88 r.params.stringFieldCount, r.params.messageCount, r.params.stringSize);
89 } 89 }
90 } 90 }
OLDNEW
« no previous file with comments | « benchmark/lib/benchmarks/repeated_int64_json.dart ('k') | benchmark/lib/benchmarks/set_strings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698