

def bench2(n):
    'Benchmark Key creation.'
    for _ in xrange(n):
        key.Key('Foo', 42, 'Bar', 1, 'Hopla', 'lala')

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/tests/keybench.py bench2/original