summaryrefslogtreecommitdiff
path: root/benchmarks/record_batch_compose.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/record_batch_compose.py')
-rw-r--r--benchmarks/record_batch_compose.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/benchmarks/record_batch_compose.py b/benchmarks/record_batch_compose.py
index 11320ca..86012df 100644
--- a/benchmarks/record_batch_compose.py
+++ b/benchmarks/record_batch_compose.py
@@ -1,11 +1,13 @@
#!/usr/bin/env python3
from __future__ import print_function
-import perf
-from kafka.record.memory_records import MemoryRecordsBuilder
-import itertools
-import random
import hashlib
+import itertools
import os
+import random
+
+import perf
+
+from kafka.record.memory_records import MemoryRecordsBuilder
DEFAULT_BATCH_SIZE = 1600 * 1024
@@ -13,7 +15,7 @@ KEY_SIZE = 6
VALUE_SIZE = 60
TIMESTAMP_RANGE = [1505824130000, 1505824140000]
-# With values above v1 record is 100 bytes, so 10_000 bytes for 100 messages
+# With values above v1 record is 100 bytes, so 10 000 bytes for 100 messages
MESSAGES_PER_BATCH = 100