def main():
    n = 100000
    print('binary protocol struct benchmark for {} times:'.format(n))
    encode(n)
    decode(n)
    print('\ncybin protocol struct benchmark for {} times:'.format(n))
    encode(n, TCyBinaryProtocolFactory())
    decode(n, TCyBinaryProtocolFactory())
def main():
    n = 100000
    print('binary protocol struct benchmark for {} times:'.format(n))
    encode(n)
    decode(n)
    print('\ncybin protocol struct benchmark for {} times:'.format(n))
    encode(n, TCyBinaryProtocolFactory())
    decode(n, TCyBinaryProtocolFactory())