File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ extension Harness {
9898 populateFields(of: &message)
9999 }
100100
101+ message = measureSubtask("Populate fields with with") {
102+ return populateFieldsWithWith()
103+ }
104+
101105 // Exercise binary serialization.
102106 let data = try measureSubtask("Encode binary") {
103107 return try message.serializedData()
140144
141145 cat >> " $gen_harness_path " << EOF
142146 }
147+
148+ private func populateFieldsWithWith() -> PerfMessage {
149+ return PerfMessage.with { message in
150+ EOF
151+
152+ if [[ " $proto_type " == " homogeneous" ]]; then
153+ generate_swift_homogenerous_populate_fields_body
154+ else
155+ generate_swift_heterogenerous_populate_fields_body
156+ fi
157+
158+ cat >> " $gen_harness_path " << EOF
159+ }
160+ }
143161}
144162EOF
145163}
Original file line number Diff line number Diff line change 33 // on the plot axis.
44 var benchmarks = [
55 'New message' , 'Populate fields' ,
6+ 'Populate fields with with' ,
67 'Encode binary' , 'Decode binary' ,
78 'Encode JSON' , 'Decode JSON' ,
89 'Encode text' , 'Decode text' ,
You can’t perform that action at this time.
0 commit comments