#NEWLINE# def run_perf( card , num_perm ) : #NEWLINE# #INDENT# m = MinHash ( num_perm = num_perm ) #NEWLINE# logging . info ( ( 'MinHash using %d permutation functions' % num_perm ) ) #NEWLINE# start = time . clock ( ) #NEWLINE# for i in range ( card ) : #NEWLINE# #INDENT# m . update ( int_bytes ( start ) ) #NEWLINE# #UNINDENT# duration = ( time . clock ( ) - start ) #NEWLINE# logging . info ( ( 'Digested %d hashes in %.4f sec' % ( card , duration ) ) ) #NEWLINE# return duration