From 99cffc7388d53f9aaf5b8890401ba8ddc5b29178 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 27 Jul 2017 17:12:04 -0300 Subject: [benchmarks] add responsiveness test with watchdog --- testing/tests/benchmarks/conftest.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'testing/tests/benchmarks/conftest.py') 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 @@ -36,16 +34,6 @@ def pytest_collection_modifyitems(items): # benchmark fixtures # -@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): -- cgit v1.2.3