Skip to content

Commit ed0d446

Browse files
committed
Regenerate protoboeuf benchmark files
1 parent a0c12c0 commit ed0d446

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

benchmarks/protoboeuf-encode/benchmark_pb.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def decode_from(buff, index, len)
10551055
index += 1
10561056
end
10571057
if tag == 0x59
1058-
@monetary_value = buff.unpack1("D", offset: index)
1058+
@monetary_value = buff.unpack1("E", offset: index)
10591059
index += 8
10601060

10611061
return self if index >= len
@@ -1277,7 +1277,7 @@ def _encode(buff)
12771277
if val != 0
12781278
buff << 0x59
12791279

1280-
buff << [val].pack("D")
1280+
[val].pack("E", buffer: buff)
12811281
end
12821282

12831283
val = @item_type
@@ -2329,7 +2329,7 @@ def decode_from(buff, index, len)
23292329
index += 1
23302330
end
23312331
if tag == 0x71
2332-
@monetary_value = buff.unpack1("D", offset: index)
2332+
@monetary_value = buff.unpack1("E", offset: index)
23332333
index += 8
23342334

23352335
return self if index >= len
@@ -2591,7 +2591,7 @@ def _encode(buff)
25912591
if val != 0
25922592
buff << 0x71
25932593

2594-
buff << [val].pack("D")
2594+
[val].pack("E", buffer: buff)
25952595
end
25962596

25972597
list = @trunk_items
@@ -3345,7 +3345,7 @@ def decode_from(buff, index, len)
33453345
index += 1
33463346
end
33473347
if tag == 0x39
3348-
@area_sqft = buff.unpack1("D", offset: index)
3348+
@area_sqft = buff.unpack1("E", offset: index)
33493349
index += 8
33503350

33513351
return self if index >= len
@@ -3545,7 +3545,7 @@ def _encode(buff)
35453545
if val != 0
35463546
buff << 0x39
35473547

3548-
buff << [val].pack("D")
3548+
[val].pack("E", buffer: buff)
35493549
end
35503550

35513551
val = @ceiling_height_inches

benchmarks/protoboeuf/benchmark_pb.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def decode_from(buff, index, len)
10551055
index += 1
10561056
end
10571057
if tag == 0x59
1058-
@monetary_value = buff.unpack1("D", offset: index)
1058+
@monetary_value = buff.unpack1("E", offset: index)
10591059
index += 8
10601060

10611061
return self if index >= len
@@ -1277,7 +1277,7 @@ def _encode(buff)
12771277
if val != 0
12781278
buff << 0x59
12791279

1280-
buff << [val].pack("D")
1280+
[val].pack("E", buffer: buff)
12811281
end
12821282

12831283
val = @item_type
@@ -2329,7 +2329,7 @@ def decode_from(buff, index, len)
23292329
index += 1
23302330
end
23312331
if tag == 0x71
2332-
@monetary_value = buff.unpack1("D", offset: index)
2332+
@monetary_value = buff.unpack1("E", offset: index)
23332333
index += 8
23342334

23352335
return self if index >= len
@@ -2591,7 +2591,7 @@ def _encode(buff)
25912591
if val != 0
25922592
buff << 0x71
25932593

2594-
buff << [val].pack("D")
2594+
[val].pack("E", buffer: buff)
25952595
end
25962596

25972597
list = @trunk_items
@@ -3345,7 +3345,7 @@ def decode_from(buff, index, len)
33453345
index += 1
33463346
end
33473347
if tag == 0x39
3348-
@area_sqft = buff.unpack1("D", offset: index)
3348+
@area_sqft = buff.unpack1("E", offset: index)
33493349
index += 8
33503350

33513351
return self if index >= len
@@ -3545,7 +3545,7 @@ def _encode(buff)
35453545
if val != 0
35463546
buff << 0x39
35473547

3548-
buff << [val].pack("D")
3548+
[val].pack("E", buffer: buff)
35493549
end
35503550

35513551
val = @ceiling_height_inches

0 commit comments

Comments
 (0)