def bench3(n):
  p = key.Key('Foo', 42, 'Bar', 1)
  for _ in xrange(n):
    key.Key('Hopla', 'lala', parent=p)
Benchmark Key creation with parent.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/tests/keybench.py/bench3