Skip to content

Commit

Permalink
Merge pull request #314 from Shopify/rwstauner/pbregen
Browse files Browse the repository at this point in the history
Regenerate protoboeuf benchmark files
  • Loading branch information
rwstauner authored Jul 25, 2024
2 parents b2fa976 + ed0d446 commit 9c0843d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions benchmarks/protoboeuf-encode/benchmark_pb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x59
@monetary_value = buff.unpack1("D", offset: index)
@monetary_value = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -1277,7 +1277,7 @@ def _encode(buff)
if val != 0
buff << 0x59

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

val = @item_type
Expand Down Expand Up @@ -2329,7 +2329,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x71
@monetary_value = buff.unpack1("D", offset: index)
@monetary_value = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -2591,7 +2591,7 @@ def _encode(buff)
if val != 0
buff << 0x71

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

list = @trunk_items
Expand Down Expand Up @@ -3345,7 +3345,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x39
@area_sqft = buff.unpack1("D", offset: index)
@area_sqft = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -3545,7 +3545,7 @@ def _encode(buff)
if val != 0
buff << 0x39

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

val = @ceiling_height_inches
Expand Down
12 changes: 6 additions & 6 deletions benchmarks/protoboeuf/benchmark_pb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x59
@monetary_value = buff.unpack1("D", offset: index)
@monetary_value = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -1277,7 +1277,7 @@ def _encode(buff)
if val != 0
buff << 0x59

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

val = @item_type
Expand Down Expand Up @@ -2329,7 +2329,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x71
@monetary_value = buff.unpack1("D", offset: index)
@monetary_value = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -2591,7 +2591,7 @@ def _encode(buff)
if val != 0
buff << 0x71

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

list = @trunk_items
Expand Down Expand Up @@ -3345,7 +3345,7 @@ def decode_from(buff, index, len)
index += 1
end
if tag == 0x39
@area_sqft = buff.unpack1("D", offset: index)
@area_sqft = buff.unpack1("E", offset: index)
index += 8

return self if index >= len
Expand Down Expand Up @@ -3545,7 +3545,7 @@ def _encode(buff)
if val != 0
buff << 0x39

buff << [val].pack("D")
[val].pack("E", buffer: buff)
end

val = @ceiling_height_inches
Expand Down

0 comments on commit 9c0843d

Please sign in to comment.