1# Benchmark computing uuid's 2 3# Strangely, pypy is really bad on this benchmark compared to python-native and pylang. 4 5from bench import register, all 6 7from uuid import uuid4 8 9 10def compute_uuids(n=10**5): 11 for i in range(n): 12 uuid4() 13 14 15register('compute_uuids', compute_uuids) 16 17if __name__ == '__main__': 18 all() 19 20