Skip to content

Commit 8d14b47

Browse files
Increase static padding in SoakRecord for consistent serialized value size
1 parent 8cba546 commit 8d14b47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/soak/soakclient_perf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class SoakRecord(object):
5555
"""A private record type, with JSON serializer and deserializer"""
5656

5757
# Static padding built once at class load. Repeats a JSON-safe base label
58-
# (letters, digits, spaces, '#') so the final value lands at ~1KB without
58+
# (letters, digits, spaces, '#') so the final value lands at ~4KB without
5959
# rebuilding the string on every produce_record() call.
60-
_PAD = (" SoakRecord nr #0" * 60)[:1000]
60+
_PAD = (" SoakRecord nr #0" * 240)[:4050]
6161

6262
def __init__(self, msgid, name=None):
6363
self.msgid = msgid

0 commit comments

Comments
 (0)