# Path: dynts/utils/test.py
# def haszoo():
#     def __init__(self, *args, **kwargs):
#     def setUp(self):
#     def tearDown(self):
#     def randomts(self, **kwargs):
#     def getdata(self, size=100, cols=1, delta=1, start=None):
#     def getts(self, returndata=False, delta=1, cols=1, size=100):
#     def timeseries(self, name='', date=None, data=None):
#     def isiterable(self, a):
#     def assertAlmostEqual(self, a, b, places=7, msg=None):
#     def assertEqual(self, exp, recv, msg = None):
#     def check_dates(self, ts, dts):
#     def check_values(self, ts, vals):
#     def _check_vectors(self, v1, v2, equal=True):
# class TestCase(unittest.TestCase):


from functools import reduce
from dynts.utils import test




class namejoin(test.BenchMark):
    backend = 'zoo'
    size = 10000
    number = 10

    def setUp(self):
        self.ts = self.size*['test']

    def __str__(self):
        return '%s (%s elements, %s times)' % (
            self.__class__.__name__,self.size, self.number)

    def run(self):
        '__'.join(('{0}{1}'.format('sqrt', x) for x in self.ts))



# Path: dynts/utils/test.py
# def haszoo():
#     def __init__(self, *args, **kwargs):
#     def setUp(self):
#     def tearDown(self):
#     def randomts(self, **kwargs):
#     def getdata(self, size=100, cols=1, delta=1, start=None):
#     def getts(self, returndata=False, delta=1, cols=1, size=100):
#     def timeseries(self, name='', date=None, data=None):
#     def isiterable(self, a):
#     def assertAlmostEqual(self, a, b, places=7, msg=None):
#     def assertEqual(self, exp, recv, msg = None):
#     def check_dates(self, ts, dts):
#     def check_values(self, ts, vals):
#     def _check_vectors(self, v1, v2, equal=True):
# class TestCase(unittest.TestCase):


# Path: tests/bench/name.py
from functools import reduce
from dynts.utils import test




class namejoin(test.BenchMark):
    backend = 'zoo'
    size = 10000
    number = 10

    def setUp(self):
        self.ts = self.size*['test']

    def __str__(self):
        return '%s (%s elements, %s times)' % (
            self.__class__.__name__,self.size, self.number)

    def run(self):
        '__'.join(('{0}{1}'.format('sqrt', x) for x in self.ts))



class namemapreduce(test.BenchMark):
