diff options
author | drebs <drebs@leap.se> | 2017-07-27 17:12:04 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-09-11 16:24:30 -0300 |
commit | 99cffc7388d53f9aaf5b8890401ba8ddc5b29178 (patch) | |
tree | f98282d0818ebe048b49ffc0112a1843305497a2 /testing/tests/benchmarks | |
parent | 70aa789c94b0dcced535cee86243e2dd4113b28a (diff) |
[benchmarks] add responsiveness test with watchdog
Diffstat (limited to 'testing/tests/benchmarks')
-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( |