'How fast can we create new AFF4 objects.'

def testAFF4Creation(self):

    def CreateAFF4Object(object_type='AFF4Object', urn='aff4:/test'):
        fd = aff4.FACTORY.Create(urn, object_type, token=self.token)
        fd.Close()
    for object_type in [aff4.AFF4Object, aff4.AFF4MemoryStream]:
        self.TimeIt(CreateAFF4Object, name=('Create    %s' % object_type), object_type=object_type)
    self.TimeIt(CreateAFF4Object, name='Create    VFSGRRClient', object_type=aff4_grr.VFSGRRClient, urn='C.1234567812345678')
