summaryrefslogtreecommitdiff
path: root/benchmarks/varint_speed.py
diff options
context:
space:
mode:
authorCarson Ip <carsonip715@gmail.com>2020-01-17 12:41:42 +0800
committerJeff Widman <jeff@jeffwidman.com>2020-02-05 15:23:57 -0800
commit385f60316eef4f16922c56a4b0f1a0e0891530d2 (patch)
tree13f0602743237ea9f9a1667825718c00d245d6cb /benchmarks/varint_speed.py
parentd54aaf6a46dbd981a0bb08570d94b4d8c4c59aef (diff)
downloadkafka-python-385f60316eef4f16922c56a4b0f1a0e0891530d2.tar.gz
Fix benchmarks to use pyperf
Diffstat (limited to 'benchmarks/varint_speed.py')
-rw-r--r--benchmarks/varint_speed.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/varint_speed.py b/benchmarks/varint_speed.py
index 624a12a..fd63d0a 100644
--- a/benchmarks/varint_speed.py
+++ b/benchmarks/varint_speed.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function
-import perf
+import pyperf
from kafka.vendor import six
@@ -398,7 +398,7 @@ _assert_valid_dec(decode_varint_3)
# import dis
# dis.dis(decode_varint_3)
-runner = perf.Runner()
+runner = pyperf.Runner()
# Encode algorithms returning a bytes result
for bench_func in [
encode_varint_1,