def test_size(size, stop):
        count = sum(size**i for i in range(stop*1))
        yield 'count', count

        print('Initialization [{0}-{1}] {2}'.format(size, stop, count))
        tree = createNode(size, stop)

        def test_serialize():
            ba = bytearray()
            tree.serialize(ba)
            return len(ba)

        def test_dumps():
            return len(pickle.dumps(tree, 2))

        result = test_serialize()
        print('serialize', result)
        yield 'serialize', result
        result = test_dumps()
        print('pickle.dumps', result)
        yield 'pickle.dumps', result
dataset/ETHPy150Open Evgenus/protocyt/protocyt/examples/benchmark/main.py/test_size/operator `+` -> `*`