diff options
Diffstat (limited to 'testing/tests/benchmarks/conftest.py')
| -rw-r--r-- | testing/tests/benchmarks/conftest.py | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/testing/tests/benchmarks/conftest.py b/testing/tests/benchmarks/conftest.py index 25fe5134..377fc606 100644 --- a/testing/tests/benchmarks/conftest.py +++ b/testing/tests/benchmarks/conftest.py @@ -1,10 +1,8 @@ -import base64  import functools  import numpy  import os  import psutil  import pytest -import random  import threading  import time @@ -37,16 +35,6 @@ def pytest_collection_modifyitems(items):  #  @pytest.fixture() -def payload(): -    def generate(size): -        random.seed(1337)  # same seed to avoid different bench results -        payload_bytes = bytearray(random.getrandbits(8) for _ in xrange(size)) -        # encode as base64 to avoid ascii encode/decode errors -        return base64.b64encode(payload_bytes)[:size]  # remove b64 overhead -    return generate - - -@pytest.fixture()  def txbenchmark(monitored_benchmark):      def blockOnThread(*args, **kwargs):          return threads.deferToThread(  | 
