summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2019-02-27 01:30:09 +0200
committerOmer Katz <omer.drow@gmail.com>2019-03-03 23:51:12 +0200
commit2e0eed4954d1a77f6e19309b490e84daef5376b1 (patch)
tree9f91983ff4d5b40398f0f4435cfdf0ae18723c28
parent7fc7960615631fb7e19983c8a173fb5ccc03a1f9 (diff)
downloadpy-amqp-2e0eed4954d1a77f6e19309b490e84daef5376b1.tar.gz
Shorten benchmark.
-rw-r--r--t/benchmarks/test_benchmarks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/benchmarks/test_benchmarks.py b/t/benchmarks/test_benchmarks.py
index 852cf33..f06b058 100644
--- a/t/benchmarks/test_benchmarks.py
+++ b/t/benchmarks/test_benchmarks.py
@@ -5,23 +5,23 @@ from amqp.serialization import loads, dumps
def test_deserialize(benchmark):
- format = b'bobBlLbsbSTx' * 8
+ format = b'bobBlLbsbSTx'
x = dumps(format, [
True, 32, False, 3415, 4513134, 13241923419,
True, b'thequickbrownfox', False, 'jumpsoverthelazydog',
datetime(2015, 3, 13, 10, 23),
b'thequick\xff'
- ] * 8)
+ ])
benchmark(loads, format, x)
def test_deserialize_pure_python(benchmark):
os.environ['PYAMQP_DUMPS_SKIP_SPEEDUPS'] = "True"
- format = b'bobBlLbsbSTx' * 8
+ format = b'bobBlLbsbSTx'
x = dumps(format, [
True, 32, False, 3415, 4513134, 13241923419,
True, b'thequickbrownfox', False, 'jumpsoverthelazydog',
datetime(2015, 3, 13, 10, 23),
b'thequick\xff'
- ] * 8)
+ ])
benchmark(loads, format, x)